-
Notifications
You must be signed in to change notification settings - Fork 313
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
Update to use CSS vars #2561
Update to use CSS vars #2561
Conversation
@felipeelia Even though the variables are scoped to |
@felipeelia I have added prefix for all variables |
Great @mehidi258 , thanks! But I think that as we are moving them to |
@mehidi258 Yeah I agree with @felipeelia, I think it makes sense to put this into a shared config file that's imported into the other admin files too. With that usage in mind I'm thinking it makes sense to adjust some of the variable names. For example, I don't think we need the |
@JakePT @felipeelia I have added vars.css file inside config and import it. Please review. |
Thanks, @mehidi258! @JakePT do you mind giving a look at the changes? I wonder if we wouldn't be better served with two vars files, one for the admin and another one for autosuggest and instant search (and any future frontend feature we create in the future). Thoughts? As is, this PR already looks like a step forward, just checking if we should go even further with the change. Thanks! |
@felipeelia Yeah I think that's a good idea. Just one for admin and one for frontend, then we're not needlessly exposing admin custom properties on the front end and vice versa. I can take a crack at it this week if @mehidi258 is no longer available. |
@JakePT Added separate admin and frontend vars file. But there may need to refactor css files for using/composing that vars. |
@felipeelia As per our Slack discussion I have reverted this PR back to defining vars at the top of each feature file. In this case the PR is still just using vars for the sync page. I had started on setting up vars for the other features, and I was going to do a pass on the variables to clean them up a bit, but frankly I think a refactor of the markup and CSS across the admin might be necessary to get a cleaner set of vars, so I'm wondering if it might be better to leave this particular change for now (unless it's necessary to deal with linting) and revisit it as part of a larger clean up/refactor of the admin CSS. What do you think? |
Description of the Change
#2489
Alternate Designs
Possible Drawbacks
Verification Process
Checklist:
Changelog Entry
Credits
Props @