-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add: Twilight style variation #232
base: trunk
Are you sure you want to change the base?
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Similar to the dusk variation, the outline button, when placed in the section style with the light background, has no visible border 🤔 |
Is there a solution for this? |
I think the border needs to be set to the same color as the button text. |
I believe I don't know how to do that in each section style. If someone can, I appreciate the help. |
I did not know about it either before Rich suggested it here: #142 (comment) |
Oh typically, variations inside variations inside variations 🤯 do not work: I think the best alternative, is for all outline buttons in the twilight variation to have the border set to " But that would mean that on top of style 2, the outline button would have an orange border:
|
Thanks for the ping 👍
That was a conscious decision made early on in the section styling explorations. Essentially there are a lot of inception-like issues that can occur. It also greatly complicates sanitization and any future Global Styles UI for users to customize block style variations or create their own.
None for 6.7. I'd have also thought there were no plans to support it for any future release at this stage. Of course, with enough valid use cases and some creative design ideas for the Global Styles IA and UI, any of this can be revisited. The case of outline buttons is a tricky one. On one hand they are a block style variation like the one you are trying to create. Variations are supposed to be able to be applied in a nested fashion rather than "styled in a nested fashion" if that makes sense. I can definitely see the argument for how you are trying to accomplish this but unfortunately, I don't have any better ideas than the one Carolina shared off the top of my head. |
Thank you for the quick response. |
Without very careful styling, these combinations can quickly become an accessibility problem. It is not unique to this style but also the default. One thing I have thought about is that if the theme has 5 section styles, there is no way to turn them off. |
Rename the file by adding a number to the file name, so that the variation is shown in the correct order.
The ability to deregister a style variation was touched on a few times during the initial iterations on this feature. There are some complications to this around potential merging and filtering of theme.json data as well as block style registration via I think this is something that we want to be able to support but it needs more time and exploration. It won't be something that makes it for 6.7 but hopefully progress can be made in the somewhat near future though. |
Each theme style variation should account for each section style individually, and support the same number as the parent. |
They do, if the border on the outline variation is set to the current color, a style that @beafialho approved yesterday. The remaining exception is the hover style for the outline variation. And as you know, this is a limitation in the editor/ global styles. |
I question if we should include full style variations. That's double to maintain (the color set, typography set along with the combined style). If anything perhaps it's the very last thing we do; to try to reduce the burden. |
Without the combined variations, there is no way to preview and highlight the combinations that Bea has created. I would like to see atleast some of the combined / full variations to be included before WCUS contributor day on Tuesday since there are two table leads who have notified that they are planning to test the theme. |
Preview changesYou can preview these changes by following the link below: I will update this comment with the latest preview links as you push more changes to this PR. |
In style 1, The white text color on top of the orange background has a too low contrast ratio: |
Description
Adds twilight style variation
Screenshots