Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add extra comment explaining deprecated button selectors
  • Loading branch information
aaronrobertshaw committed May 13, 2024
commit 022f5c90498c47d5652344517438e4fd4210c970
6 changes: 3 additions & 3 deletions packages/block-library/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ $blocks-block__margin: 0.5em;
}
}

// the first selector is required for old buttons markup
// The following block style selectors are required for old buttons markup and
// are not wrapped in `:where` as global styles are to match the specificity
// at the time they were deprecated.
.wp-block-button.is-style-squared,
.wp-block-button__link.wp-block-button.is-style-squared {
border-radius: 0;
}

// the first selector is required for old buttons markup
.wp-block-button.no-border-radius,
.wp-block-button__link.no-border-radius {
border-radius: 0 !important;
Expand Down