Skip to content
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

Discussion: standardize slugs for section styles #63036

Open
annezazu opened this issue Jul 1, 2024 · 2 comments
Open

Discussion: standardize slugs for section styles #63036

annezazu opened this issue Jul 1, 2024 · 2 comments
Labels
[Feature] Block Style Variations Issues or PRs that are related to the style variations for blocks [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Discussion For issues that are high-level and not yet ready to implement.

Comments

@annezazu
Copy link
Contributor

annezazu commented Jul 1, 2024

In 6.6, the option to style sections of blocks, unofficially referred to as "section styles", is being introduced. To help with standardization and ultimately broader adoption and ease of use across themes, let's talk standardizing slugs for this new option:

Section.styling.mp4

I imagine this will impact Twenty Twenty-Five https://github.com/WordPress/twentytwentyfive and the development that occurs there, as well as the example that default theme sets.

In talking with others (@richtabor @bgardner @justintadlock @ndiego) today about this feature and problem, we discussed how ideally the slug value is as generic as possible (ex: section-1) and the titles can be set as they make the most sense per theme. Core directory patterns can then also use the generic slug and reflect your site's styles out of the box when viewing any core patterns. @WordPress/block-themers please share thoughts!

@annezazu annezazu added [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Discussion For issues that are high-level and not yet ready to implement. [Feature] Block Style Variations Issues or PRs that are related to the style variations for blocks labels Jul 1, 2024
@bgardner
Copy link

bgardner commented Jul 1, 2024

Noting this is also being discussed at: WordPress/twentytwentyfive#3

@bgardner
Copy link

bgardner commented Jul 1, 2024

I love the movement toward an interoperable (instead of opinionated) approach and want to adopt whatever we decide here/TT5 in my work with Powder. I can't think of anything better (or more suitable) at the moment than the generic section-1, section-2, and section-3 approach for slugs. This naming convention gets my vote.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block Style Variations Issues or PRs that are related to the style variations for blocks [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Discussion For issues that are high-level and not yet ready to implement.
2 participants