-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Use box-shadow
CSS variables shadow utilities
#38816
Use box-shadow
CSS variables shadow utilities
#38816
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks for the contribution!
I wonder if we should change all the occurences of $box-shadow*
in our Scss. It can maybe be done afterwards (_variables.scss
, _navbar.scss
, sidebar.scss
).
box-shadow
CSS variables shadow utilities
@julien-deramond @louismaximepiton Thoughts on making this stuff part of a v5.3.1 or v5.3.2? Wondering if this counts as anything more meaningful than just a general quality of life improvement and consistency change. |
I think you're right it's only general improvement for quality of life. I guess that it could be merged whenever but I think the sooner the better. However, I don't have a strong opinion whether it should be in v5.3.1 or v5.3.2. |
Description
Currently the shadow utility css classes have the following code:
This PR would result in the following change:
Making use of css box-shadow variables in the shadow utility classes
The values of these css variables are unchanged and are as follows
As you can see they are the same value as the sass variables
these box-shadow css variables only seemed to be currently in use by the following:
The resulting values of these box shadow's don't change
Motivation & Context
To allow overriding the shadow utility classes without the use of
!important
or sass variablesType of changes
Checklist
npm run lint
)Live previews
Not sure if i need to do this
Related issues
None. There are a few issues related to shadows, but none specifically asking for css variables in the current shadow utility classes