Skip to content
Merged
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
button radius
  • Loading branch information
jameskoster committed Aug 1, 2023
commit 49e0857b8c88374327efc2b8f5e2d829d2798034
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@
background: $gray-100;
border-radius: $grid-unit-05;
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, I could swear that box was 2px.

Since we're also using this border radius for modal dialogs (.components-modal__frame), should we make it a canonized variable like we have one for $radius-block-ui, and apply across both? Or is there a better system for handling the 3 radiuses we use at the moment (2, 4, 8)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes a little down the road I think we should consider this. Probably part of the upcoming component theming work.

width: min(100%, 450px);
overflow: hidden;

// Make the document title shorter in top-toolbar mode, as it has to be covered.
.has-fixed-toolbar & {
width: min(100%, 380px);
}

.components-button {
border-radius: 0;
border-radius: $grid-unit-05;

&:hover {
color: var(--wp-block-synced-color);
Expand Down