Logo

TODAY I LEARNED

77879d9e21b1ac300b950a6609564f83

1 post by ramon-guzman
@juanequex

data-scheme to add styles!

If you need to add styles to an element when the page is in dark mode, simply use the data-scheme of the page followed by the class or ID of the element you want to add styles to.

[data-scheme="dark"] .js-subs-text-inputs {
   color: #FFFFFF;
}

Learned by ramon-guzman on Apr 13, 2022

973983 adforcodereview v3 0211021 c02 021121