For something like the following:
<div class="example">
<div id="label">
Label text
</div>
</div>
The following CSS is able to style 'Label text'
.example #label {
color: red;
}
But it does not work with fluentUI mergeStyles:
const RedLabelStyles = mergeStyles({
".example #label": {
color: "red"
}
});
I know it's a problem with the selector, not the CSS itself, because the following correctly applies styles:
const RedLabelStyles = mergeStyles({
"#label": {
color: "red"
}
});