Closed jotaen4tinypilot closed 1 month ago
style.css is already importing button.css, so we automatically have both when we import style.css in web components.
style.css
button.css
However, in almost all of our web components, we still import both (e.g., see the <update-dialog> as an example.
<update-dialog>
I’d argue that the button style is as fundamental as any other style definition in style.css, so we could consider refactoring this. E.g.:
@import "css/button.css
style.css
is already importingbutton.css
, so we automatically have both when we importstyle.css
in web components.However, in almost all of our web components, we still import both (e.g., see the
<update-dialog>
as an example.I’d argue that the button style is as fundamental as any other style definition in
style.css
, so we could consider refactoring this. E.g.:button.css
tostyle.css
, and remove all@import "css/button.css
directives.@import "css/button.css
, but keep thebutton.css
file as separate file for tidiness.button.css
import fromstyle.css
, but then we’d be forced to import it in all places where we use it.