-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL input popover visual cleanup #13973
Changes from all commits
47acdb2
a35b7a7
6cdf20b
3fb56cd
b12a17f
02acf7e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -9,19 +9,53 @@ | |||||||
flex-grow: 1; | ||||||||
} | ||||||||
|
||||||||
// Mimic toolbar component styles for the icons in this popover. | ||||||||
.components-icon-button { | ||||||||
padding: 3px; | ||||||||
|
||||||||
> svg { | ||||||||
padding: 5px; | ||||||||
border-radius: $radius-round-rectangle; | ||||||||
height: 30px; | ||||||||
width: 30px; | ||||||||
} | ||||||||
|
||||||||
&:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another note: This is a rather unfortunate string of gutenberg/packages/components/src/icon-button/style.scss Lines 28 to 30 in 14374e5
|
||||||||
box-shadow: none; | ||||||||
|
||||||||
> svg { | ||||||||
@include formatting-button-style__hover; | ||||||||
} | ||||||||
} | ||||||||
|
||||||||
&:not(:disabled):focus { | ||||||||
box-shadow: none; | ||||||||
|
||||||||
> svg { | ||||||||
@include formatting-button-style__focus; | ||||||||
} | ||||||||
} | ||||||||
} | ||||||||
|
||||||||
&__settings-toggle { | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know you didn't write this initially, but while you're here do you think we should change this rule to be less obtuse? Although there isn't any written rule saying this much, in general I believe the SCSS standard pattern that is emerging is to use write Hmm actually that might be a big rewrite of this CSS file. Okay to ignore if you feel this is too big of a task. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed! This was really confusing to parse. I'll take care of this in a separate PR, so we can get this change in first. 👍 |
||||||||
flex-shrink: 0; | ||||||||
width: $icon-button-size; | ||||||||
height: $icon-button-size; | ||||||||
|
||||||||
.dashicon { | ||||||||
transform: rotate(90deg); | ||||||||
// Add a left divider to the toggle button. | ||||||||
border-radius: 0; | ||||||||
border-left: $border-width solid $light-gray-500; | ||||||||
margin-left: 1px; | ||||||||
|
||||||||
&[aria-expanded="true"] .dashicon { | ||||||||
transform: rotate(180deg); | ||||||||
} | ||||||||
} | ||||||||
|
||||||||
&__settings { | ||||||||
padding: 7px 8px; | ||||||||
padding: $panel-padding; | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💖 |
||||||||
border-top: $border-width solid $light-gray-500; | ||||||||
padding-top: 7px + $border-width; | ||||||||
|
||||||||
.components-base-control:last-child .components-base-control__field { | ||||||||
margin-bottom: 0; | ||||||||
} | ||||||||
} | ||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noting, I think our panels actually use a material SVG here, but the IconButton doesn't support that yet, so I'm using the closest equivalent from Dashicons.