-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure unique classNames for pseudo classes & elems
- Loading branch information
Showing
7 changed files
with
54 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
crates/stylex-shared/src/shared/utils/core/tests/convert_to_class_name_test.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...te_call_pseudo_elements.rs/transforms_pseudo_elements_sandwiched_within_pseudo_classes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
//__stylex_metadata_start__[{"class_name":"x16oeupf","style":{"rtl":null,"ltr":".x16oeupf::before{color:red}"},"priority":8000},{"class_name":"xeb2lg0","style":{"rtl":null,"ltr":".xeb2lg0:hover::before{color:blue}"},"priority":8130},{"class_name":"x18ezmze","style":{"rtl":null,"ltr":".x18ezmze:hover::before:hover{color:green}"},"priority":8260},{"class_name":"xnj3kot","style":{"rtl":null,"ltr":".xnj3kot:hover::before:active{color:purple}"},"priority":8300}]__stylex_metadata_end__ | ||
//__stylex_metadata_start__[{"class_name":"x16oeupf","style":{"rtl":null,"ltr":".x16oeupf::before{color:red}"},"priority":8000},{"class_name":"xzzpreb","style":{"rtl":null,"ltr":".xzzpreb:hover::before{color:blue}"},"priority":8130},{"class_name":"x1gobd9t","style":{"rtl":null,"ltr":".x1gobd9t:hover::before:hover{color:green}"},"priority":8260},{"class_name":"xs8jp5","style":{"rtl":null,"ltr":".xs8jp5:hover::before:active{color:purple}"},"priority":8300}]__stylex_metadata_end__ | ||
import _inject from "@stylexjs/stylex/lib/stylex-inject"; | ||
var _inject2 = _inject; | ||
import stylex from 'stylex'; | ||
_inject2(".x16oeupf::before{color:red}", 8000); | ||
_inject2(".xeb2lg0:hover::before{color:blue}", 8130); | ||
_inject2(".x18ezmze:hover::before:hover{color:green}", 8260); | ||
_inject2(".xnj3kot:hover::before:active{color:purple}", 8300); | ||
_inject2(".xzzpreb:hover::before{color:blue}", 8130); | ||
_inject2(".x1gobd9t:hover::before:hover{color:green}", 8260); | ||
_inject2(".xs8jp5:hover::before:active{color:purple}", 8300); | ||
export const styles = { | ||
foo: { | ||
"::before_color": "x16oeupf", | ||
":hover_::before_color": "xeb2lg0 x18ezmze xnj3kot", | ||
":hover_::before_color": "xzzpreb x1gobd9t xs8jp5", | ||
$$css: true | ||
} | ||
}; |
6 changes: 3 additions & 3 deletions
6
..._create_call_pseudo_elements.rs/transforms_pseudo_elements_within_legeacy_pseudo_class.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
//__stylex_metadata_start__[{"class_name":"x16oeupf","style":{"rtl":null,"ltr":".x16oeupf::before{color:red}"},"priority":8000},{"class_name":"xeb2lg0","style":{"rtl":null,"ltr":".xeb2lg0:hover::before{color:blue}"},"priority":8130}]__stylex_metadata_end__ | ||
//__stylex_metadata_start__[{"class_name":"x16oeupf","style":{"rtl":null,"ltr":".x16oeupf::before{color:red}"},"priority":8000},{"class_name":"xzzpreb","style":{"rtl":null,"ltr":".xzzpreb:hover::before{color:blue}"},"priority":8130}]__stylex_metadata_end__ | ||
import _inject from "@stylexjs/stylex/lib/stylex-inject"; | ||
var _inject2 = _inject; | ||
import stylex from 'stylex'; | ||
_inject2(".x16oeupf::before{color:red}", 8000); | ||
_inject2(".xeb2lg0:hover::before{color:blue}", 8130); | ||
_inject2(".xzzpreb:hover::before{color:blue}", 8130); | ||
export const styles = { | ||
foo: { | ||
"::before_color": "x16oeupf", | ||
":hover_::before_color": "xeb2lg0", | ||
":hover_::before_color": "xzzpreb", | ||
$$css: true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters