Skip to content

Commit

Permalink
Twenty Seventeen: Fixes button block font weight not changing.
Browse files Browse the repository at this point in the history
The button block appearance was not changing when using settings. This resolves that using inherit.

Props pranitdugad, sabernhardt, shailu25, hmbashar.
Fixes #60937.


git-svn-id: https://develop.svn.wordpress.org/trunk@58584 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
karmatosed committed Jun 26, 2024
1 parent b64610b commit dc788c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wp-content/themes/twentyseventeen/assets/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ p.has-drop-cap:not(:focus)::first-letter {
text-align: center;
}

.wp-block-buttons[style*="font-weight"] .wp-block-button__link,
.wp-block-button[style*="font-weight"] .wp-block-button__link {
font-weight: inherit;
}

/*--------------------------------------------------------------
4.0 Blocks - Layout Elements
--------------------------------------------------------------*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,11 @@ table.wp-block-table td:last-child {
text-align: center;
}

.wp-block-buttons[style*="font-weight"] .wp-block-button__link,
.wp-block-button[style*="font-weight"] .wp-block-button__link {
font-weight: inherit;
}

/* Verse */

.editor-styles-wrapper .wp-block-verse {
Expand Down

0 comments on commit dc788c6

Please sign in to comment.