Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function BlockQuickNavigationItem( { clientId, onSelect } ) {
return (
<Button
__next40pxDefaultSize
className="block-editor-block-quick-navigation__item"
isPressed={ isSelected }
onClick={ async () => {
await selectBlock( clientId );
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@use "@wordpress/base-styles/variables";

.block-editor-block-quick-navigation__item {
font-weight: variables.$font-weight-regular;
}
1 change: 1 addition & 0 deletions packages/block-editor/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@use "./components/block-patterns-paging/style.scss" as *;
@use "./components/block-popover/style.scss" as *;
@use "./components/block-preview/style.scss" as *;
@use "./components/block-quick-navigation/style.scss" as *;
@use "./components/block-rename/style.scss" as *;
@use "./components/block-styles/style.scss" as *;
@use "./components/block-switcher/style.scss" as *;
Expand Down
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Enhancements

- `Button`: Update font weight to `500` ([#70787](https://github.com/WordPress/gutenberg/pull/70787)).

## 30.6.0 (2025-10-17)

### Enhancements
Expand Down
7 changes: 6 additions & 1 deletion packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@
text-decoration: none;
font-family: inherit;
font-size: $default-font-size;
// Use 499 instead of `$font-weight-medium` (ie 500) as it seems to force
// browsers to pick 400 (instead if 600 or 700) when the font family in use
// doesn't include the 500 weight.
font-weight: 499;
margin: 0;
border: 0;
cursor: pointer;
-webkit-appearance: none;
background: none;

@media not (prefers-reduced-motion) {
@media not ( prefers-reduced-motion ) {
transition: box-shadow 0.1s linear;
}

Expand Down Expand Up @@ -251,6 +255,7 @@
background: none;
outline: none;
text-align: left;
font-weight: $font-weight-regular;
color: $components-color-accent;
text-decoration: underline;

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/date-time/date/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const DayButton = styled( Button, {
border-radius: ${ CONFIG.radiusRound };
height: ${ space( 7 ) };
width: ${ space( 7 ) };
font-weight: 400;

${ ( props ) =>
props.isSelected &&
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/dropdown-menu/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
outline: none;
cursor: pointer;
white-space: nowrap;
font-weight: $font-weight-regular;

&.has-separator {
margin-top: 6px;
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/menu-item/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.components-menu-item__button,
.components-menu-item__button.components-button {
width: 100%;
font-weight: $font-weight-regular;

&[role="menuitemradio"],
&[role="menuitemcheckbox"] {
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/components/post-panel-row/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
text-wrap: pretty;
height: auto;
min-height: $button-size-compact;
font-weight: $font-weight-regular;
}

.components-dropdown {
Expand Down
Loading