-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Migrate away from _utilities.legacy.scss #8947
Comments
@thibaudcolas any thoughts on this? |
Created after reviewing #8855 - new code added using |
All of this makes sense to me. Note |
Hi @thibaudcolas |
Go for it @Lovelyfin00 - this is still open. Try to address a few small ones in one PR before you tackle them all. A good place to start is just the removal of unused ones. Be sure you check the code yourself, and also search for partial matches in the code. |
Hi @lb- |
@Lovelyfin00 best to search the code for any usage. Tailwind classes get generated based on the tailwind config file https://github.com/wagtail/wagtail/blob/main/client/tailwind.config.js |
I can't find where these html are displayed on the wagtail bakery. I have searched edit post on the baskery admin but I still can't find what I'm looking for. /wagtail/wagtail/documents/templates/wagtaildocs/documents/edit.html /wagtail/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html |
Thank you so much @lb- /wagtail/wagtail/contrib/forms/templates/wagtailforms/list_submissions.html |
@Lovelyfin00 in the menu click forms - then click the contact form responses listing. |
File: client/src/tokens/typography.jsAdd (maybe after lineHeight)
Then ensure you export it at the bottom
Then import that listStyleType in client/tailwind.config.js
Then include it in the module export
|
@Lovelyfin00 just a heads up See the line between the 'filesize/usage' column. We possibly could migrate that to Tailwind utility classes but just flagging based on feedback on #9535 |
- `divider-before` not used - add w-list-none to Tailwind utility classes - remove now unused unlist class - relates to wagtail#8947
- `divider-before` not used - add w-list-none to Tailwind utility classes - remove now unused unlist class - relates to #8947
As of #11365, all that’s listed here has been changed except |
Is your proposal related to a problem?
client/scss/overrides/_utilities.legacy.scss
file and replace those usages with the appropriate Tailwind classes OR remove their usage completely (e.g..clear
).Describe the solution you'd like
Remove the utilities legacy file and replace each usage if needed with either SCSS mixins OR the equivalent tailwind utility class.
.u-hidden
w-hidden
- but validate each usage.clearfix
clearfix()
if used anywhere else, will be removed completely in the near future.nice-padding
.divider-before
.divider-after
body.reordering
.show-transparency
.inline
w-inline
(validate each usage).inline-block
w-inline-block
(validate each usage).block
w-block
(validate each usage).unlist
.overflow
w-overflow-...
Tailwind class (validate each usage) OR remove if not usedDescribe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: