We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f611579 commit 9282943Copy full SHA for 9282943
libs/extractor/src/extractor/extract_style_from_expression.rs
@@ -216,15 +216,13 @@ pub fn extract_style_from_expression<'a>(
216
} else {
217
StyleSelector::from([&selector.to_string(), *name]).to_string()
218
}
219
+ } else if name.starts_with("_") {
220
+ StyleSelector::from(
221
+ to_kebab_case(&name.replace("_", "")).as_str(),
222
+ )
223
+ .to_string()
224
- if name.starts_with("_") {
- StyleSelector::from(
- to_kebab_case(&name.replace("_", "")).as_str(),
- )
- .to_string()
225
- } else {
226
- StyleSelector::from(name.replace("_", "").as_str()).to_string()
227
- }
+ StyleSelector::from(name.replace("_", "").as_str()).to_string()
228
229
})
230
.collect::<Vec<_>>()
0 commit comments