-
-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Divider border gets overwritten by TailwindCSS preflight #2088
Comments
@jusko I added a discussion to Tailwind here: tailwindlabs/tailwindcss#13891 fingers crossed there's some way we can resolve this. |
Thanks @KonnorRogers. I'll be using the workaround you suggested of recreating the |
Hi @KonnorRogers, I'm curious to know why we are not renaming the --width and --height CSS properties. I believe this could solve the issue. Thank you |
Not sure I follow by "renaming" Those variables get set in the shoelace/src/components/divider/divider.styles.ts Lines 4 to 8 in 96edd85
|
Instead of reassigning |
That shouldn't make a difference. The problem will will still remain that |
@claviska, would you accept a PR to add a note to the
If so, is there any particular format you'd want that information to be in? I don't recall any other such caveats being documented for other elements. |
@marcuslimdw that's probably a good idea in the meantime. You can add a callout to the divider page wherever it seems appropriate. The syntax for that looks like this: :::tip
This test will be shown in a callout on the website.
::: |
Created #2356. |
Describe the bug
<sl-divider>
's border is getting overwritten by TailwindCSS preflight CSSTo Reproduce
https://codepen.io/paramagicdev/pen/VwOdKqP?editors=1000
Screenshots
Browser / OS
Additional information
This is a result of the
*
selector having more specificity than:host
. luckily it only affects borders set in a:host
block, but its still annoying.Users can use
border: revert-layer
on the specific component, but the browser support is atrocious.https://caniuse.com/?search=revert-layer
The other option is for them to recreate the
:host
selectors.The text was updated successfully, but these errors were encountered: