Repository navigation
Feat/ls 1711 define spotlight global styles and shared block styling #3
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
Merged
josearmandoabreu
merged 13 commits into
develop
from
feat/ls-1711-define-spotlight-global-styles-and-shared-block-styling
Aug 6, 2026
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8ab474e
Define global styles and shared block styling proposal and tasks: imp…
josearmandoabreu 073f8a7
Update link colors to align with design tokens: change default and ho…
josearmandoabreu ea74e12
Task 2. Implement default button styling and hover states: define bac…
josearmandoabreu 8e13686
Task 3. Define button block style variations and update validation lo…
josearmandoabreu 3e8e5e2
Task 4. Define quote and pullquote block styles: add border, typograp…
josearmandoabreu c3fffce
Task 5. Define list styling: add marker color, spacing for list items…
josearmandoabreu 1d4fee6
Task 6. Define heading spacing: add top and bottom margin values for …
josearmandoabreu 89e8d8a
Task 7. Validation Define global styles and shared block styling: add…
josearmandoabreu b18e126
Archive LS-1711 change and sync base-styles capability spec
josearmandoabreu f1ced8f
Refactor button styles to use CSS for hover effects and update CHANGE…
josearmandoabreu be98438
Add button style configurations for Dashboard, Outline, Republish Art…
josearmandoabreu 111aa16
Define global styles and shared block styling for buttons, including …
josearmandoabreu 8dccd8f
Copilot review feedback: Fix background color property case in button…
josearmandoabreu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /* | ||
| * Icon and hover states for WordPress core/button's own built-in "Fill" and | ||
| * "Outline" block styles, restyled to match Spotlight's design system (see | ||
| * custom-button.css for Spotlight's own bespoke button variations). | ||
| */ | ||
|
|
||
| /* Fill (default, unstyled — styles.elements.button in theme.json) */ | ||
|
|
||
| .wp-block-button .wp-block-button__link:hover { | ||
| background-color: var(--wp--preset--color--accent-300); | ||
| color: var(--wp--preset--color--base); | ||
| } | ||
|
|
||
| /* Outline (styles/blocks/button/outline.json) */ | ||
|
|
||
| .wp-block-button.is-style-outline .wp-block-button__link::after { | ||
| content: ""; | ||
| display: inline-block; | ||
| width: 1.25em; | ||
| height: 1.25em; | ||
| vertical-align: -0.35em; | ||
| margin-inline-start: var(--wp--preset--spacing--5); | ||
| background-color: currentColor; | ||
| -webkit-mask-image: url('../icons/arrow-right.svg'); | ||
| -webkit-mask-repeat: no-repeat; | ||
| -webkit-mask-size: contain; | ||
| mask-image: url('../icons/arrow-right.svg'); | ||
| mask-repeat: no-repeat; | ||
| mask-size: contain; | ||
| } | ||
|
|
||
| .wp-block-button.is-style-outline .wp-block-button__link:hover { | ||
| background-color: var(--wp--preset--color--accent-300); | ||
| border-color: var(--wp--preset--color--neutral-200); | ||
| color: var(--wp--preset--color--neutral-200); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| /* | ||
| * Icon and hover states for Spotlight's own custom core/button block-style | ||
| * variations (i.e. not WP core's built-in "Fill"/"Outline" styles — see | ||
| * core-button.css for those). One rule block per variation. | ||
| */ | ||
|
|
||
| /* Republish Article (styles/blocks/button/republish-article.json) */ | ||
|
|
||
| .wp-block-button.is-style-republish-article .wp-block-button__link::before { | ||
| content: ""; | ||
| display: inline-block; | ||
| width: 1.25em; | ||
| height: 1.25em; | ||
| vertical-align: -0.35em; | ||
| margin-inline-end: var(--wp--preset--spacing--5); | ||
| background-color: currentColor; | ||
| -webkit-mask-image: url('../icons/arrow-line-up-right.svg'); | ||
| -webkit-mask-repeat: no-repeat; | ||
| -webkit-mask-size: contain; | ||
| mask-image: url('../icons/arrow-line-up-right.svg'); | ||
| mask-repeat: no-repeat; | ||
| mask-size: contain; | ||
| } | ||
|
|
||
| .wp-block-button.is-style-republish-article .wp-block-button__link:hover { | ||
| background-color: var(--wp--preset--color--accent-600); | ||
| color: var(--wp--preset--color--base); | ||
| } | ||
|
|
||
| /* Secondary (styles/blocks/button/secondary.json) */ | ||
|
|
||
| .wp-block-button.is-style-secondary .wp-block-button__link::after { | ||
| content: ""; | ||
| display: inline-block; | ||
| width: 1.25em; | ||
| height: 1.25em; | ||
| vertical-align: -0.35em; | ||
| margin-inline-start: var(--wp--preset--spacing--5); | ||
| background-color: currentColor; | ||
| -webkit-mask-image: url('../icons/arrow-right.svg'); | ||
| -webkit-mask-repeat: no-repeat; | ||
| -webkit-mask-size: contain; | ||
| mask-image: url('../icons/arrow-right.svg'); | ||
| mask-repeat: no-repeat; | ||
| mask-size: contain; | ||
| } | ||
|
|
||
| .wp-block-button.is-style-secondary .wp-block-button__link:hover { | ||
| background-color: var(--wp--preset--color--accent-300); | ||
| color: var(--wp--preset--color--base); | ||
| } | ||
|
|
||
| /* Dashboard (styles/blocks/button/dashboard.json) */ | ||
|
|
||
| .wp-block-button.is-style-dashboard .wp-block-button__link::before { | ||
| content: ""; | ||
| display: inline-block; | ||
| width: 1.25em; | ||
| height: 1.25em; | ||
| vertical-align: -0.35em; | ||
| margin-inline-end: var(--wp--preset--spacing--5); | ||
| background-color: currentColor; | ||
| -webkit-mask-image: url('../icons/chart-line-up.svg'); | ||
| -webkit-mask-repeat: no-repeat; | ||
| -webkit-mask-size: contain; | ||
| mask-image: url('../icons/chart-line-up.svg'); | ||
| mask-repeat: no-repeat; | ||
| mask-size: contain; | ||
| } | ||
|
|
||
| .wp-block-button.is-style-dashboard .wp-block-button__link:hover { | ||
| background-color: var(--wp--preset--color--accent-600); | ||
| color: var(--wp--preset--color--base); | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
openspec/changes/archive/2026-08-05-spotlight-global-styles-and-block-rules/.openspec.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| schema: spec-driven | ||
| created: 2026-08-05 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.