Skip to content

Improvements - #212

Merged
laravdiemen merged 16 commits into
mainfrom
improvements
Nov 9, 2026
Merged

laravdiemen merged 16 commits into
mainfrom
improvements

Conversation

@laravdiemen

Copy link
Copy Markdown
Contributor

Weer wat kleine verschillende verbeteringen, de commits spreken hopelijk voor zichzelf

@laravdiemen
laravdiemen requested review from a team as code owners November 4, 2026 08:41
@laravdiemen
laravdiemen requested review from ShunLuk, SimonvanWijhe, WybeBosch, Yannicvanveen, YvetteNikolov, dtakken, ictbeheer, mvdhoek1, richardkorthuis and rivanuff and a balanced review from Copilot and removed request for a team November 4, 2026 08:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The changes reference an undefined text-color token and enable banner background-color support without a selectable palette, preventing both features from working as intended.

2 open issues
What changed in this PR

This PR makes small editor and presentation updates across Brave’s Sage theme, covering block controls, spacing, form colors, and header components.

Changes:

  • Enables card anchors and banner background controls, and adjusts Gutenberg settings.
  • Refines block spacing, image sizing, and FacetWP styling.
  • Adds form text-color variables and simplifies component markup and styles.
File Description
web/​app/​themes/​sage/​theme.json Removes core Group color overrides.
web/​app/​themes/​sage/​resources/​views/​components/​header/​search-bar.blade.php Limits minimum trigger height to smaller screens.
web/​app/​themes/​sage/​resources/​views/​components/​header/​mobile-menu.blade.php Removes hamburger transitions and reformats markup.
web/​app/​themes/​sage/​resources/​views/​components/​card.blade.php Simplifies reading custom classes.
web/​app/​themes/​sage/​resources/​views/​blocks/​FacetWP/​index.blade.php Adds outer block spacing.
web/​app/​themes/​sage/​resources/​styles/​vendor/​facetwp.css Styles selected date-picker cells.
web/​app/​themes/​sage/​resources/​styles/​elements/​forms.css Defines input and select text-color variables.
web/​app/​themes/​sage/​resources/​styles/​blocks/​wp/​shared.css Removes galleries from shared bottom-spacing rules.
web/​app/​themes/​sage/​resources/​styles/​blocks/​social-link/​shared.css Removes social-link padding overrides.
web/​app/​themes/​sage/​resources/​styles/​blocks/​media-text/​shared.css Adjusts image-fill media sizing.
web/​app/​themes/​sage/​resources/​styles/​blocks/​gallery/​shared.css Adds responsive, position-dependent gallery spacing.
web/​app/​themes/​sage/​resources/​styles/​blocks/​collapse/​editor.css Uses the button-specific corner-radius variable.
web/​app/​themes/​sage/​resources/​styles/​base/​utilities.css Applies form text-color variables.
web/​app/​themes/​sage/​resources/​scripts/​blocks/​section/​style.css Moves banner-adjacency spacing rules out of section styles.
web/​app/​themes/​sage/​resources/​scripts/​blocks/​card/​block.json Enables HTML anchors.
web/​app/​themes/​sage/​resources/​scripts/​blocks/​banner/​style.css Removes spacing between banners and adjacent background sections.
web/​app/​themes/​sage/​resources/​scripts/​blocks/​banner/​block.json Enables background-color controls.
web/​app/​themes/​sage/​config/​gutenberg.php Adds core/quote to an existing block configuration list.

Review effort: Balanced

"reusable": false,
"color": {
"text": false,
"background": true,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nee dat willen we niet standaard in brave. Door het wel al als support toe te voegen is het wel makkelijk te gebruiken als een thema het wel nodig heeft.

.wp-block-theme-banner:has( + .wp-block-theme-section.has-background ) {
@apply mb-0;

+ .wp-block-theme-section.has-background {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Denk dat hier wel bewust was gekozen om het onderwerp van de regel in het bijhorende CSS bestand te stoppen. Als in we stijlen een sectie, dan vind je de CSS in het bestand voor secties. De vraag is wat bepaalt waar CSS staat, het onderwerp of de context. Voor beide valt waarschijnlijk wel iets te zeggen, als het maar consistent is.

De regel leest zo wel een beetje raar: 'verwijder de bovenste marge van een sectie blok met een achtergrond dat volgt op een banner blok dat vooraf gaat aan sectie blok met een achtergrond' i.p.v. 'verwijder de bovenste marge van een sectie blok met een achtergrond dat volgt op een banner blok'. Heeft waarschijnlijk ook gevolgen voor hoe specifiek de regel is, hoewel dat in de praktijk waarschijnlijk nooit voor problemen zorgt.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"een banner blok dat vooraf gaat aan sectie blok met een achtergrond" dat gedeelte klopt niet. De situatie die hiermee afgehandeld is, is als volgt:
[Banner]
[Sectie met achtergrondkleur]

De margin tussen deze blokken wil je weg hebben. Je verhaal over in welk bestand het moet staan, die snap ik wel ja. In dit geval heb ik voor de banner gekozen omdat in eerste instantie de margin van de banner wordt weggehaald en daarna ook die van de sectie. Ik zou het persoonlijk gek vinden om het in 2 losse bestanden te gaan zetten omdat het wel met elkaar te maken heeft.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dat is alleen het laatste deel van de zin 😉 Snap dat beide marges in deze situaties weg moeten. Mijn punt was alleen dat .wp-block-theme-banner + .wp-block-theme-section.has-background (0,3,0) naar mijn mening duidelijker en efficienter is dan .wp-block-theme-banner:has(+ .wp-block-theme-section.has-background) + .wp-block-theme-section.has-background (0,5,0). Maar helemaal prima zo! 👍😄

"description": "Gebruik dit blok om een kaart te maken met een afbeelding, titel en tekst.",
"ancestor": [ "core/group" ],
"supports": {
"anchor": true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wybe: note to self wat doet anchor ookalweer

@laravdiemen
laravdiemen merged commit 0a8b285 into main Nov 9, 2026
1 of 2 checks passed
@laravdiemen
laravdiemen deleted the improvements branch November 9, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants