-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Command Palette: Make admin bar trigger a native group element #11171
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
base: trunk
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -374,8 +374,22 @@ html:lang(he-il) .rtl #wpadminbar * { | |
| color: #000; | ||
| } | ||
|
|
||
| #wpadminbar .quicklinks { | ||
| display: flex; | ||
|
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. Introducing Profile menu off-screen at 1,000 pixels wide, with a few plugins activated:
Profile menu expanded with the Enter key:
Member
Author
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. Trying something where if it doesn't fit, we fall back to normal toolbar behavior. shrink.mov |
||
| align-items: center; | ||
| } | ||
|
|
||
| #wpadminbar #wp-admin-bar-root-default { | ||
| flex: 1 1 0; | ||
| min-width: fit-content; | ||
| } | ||
|
|
||
| #wpadminbar .ab-top-secondary { | ||
| float: right; | ||
| flex: 1 1 0; | ||
| min-width: fit-content; | ||
| display: flex; | ||
| justify-content: flex-end; | ||
| } | ||
|
|
||
| #wpadminbar ul li:last-child, | ||
|
|
@@ -629,6 +643,37 @@ html:lang(he-il) .rtl #wpadminbar * { | |
| } | ||
| } | ||
|
|
||
| /** | ||
| * Command Palette | ||
| */ | ||
| #wpadminbar .ab-command-palette { | ||
| flex: 0 0 auto; | ||
| padding: 4px 0; | ||
| } | ||
|
|
||
| #wpadminbar #wp-admin-bar-command-palette-trigger .ab-item { | ||
| width: 200px; | ||
| background: #757575; | ||
|
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.
The hover and focus states typically have less contrast. Low contrast for Modern (default) scheme on hover/focus:
Very low contrast for Fresh on hover/focus:
Member
Author
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. Yes, this needs to be changed to a variable
Member
Author
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. Actually sorry, I guess it needs an override for that color scheme |
||
| height: 24px; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| border-radius: 2px; | ||
| } | ||
|
|
||
| #wpadminbar #wp-admin-bar-command-palette-trigger .ab-label kbd { | ||
| background: transparent; | ||
| } | ||
|
|
||
| #wpadminbar #wp-admin-bar-command-palette-trigger .ab-icon { | ||
| transform: scaleX(-1); | ||
|
Contributor
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. Clever 😄
Member
Author
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. |
||
| } | ||
|
|
||
| #wpadminbar #wp-admin-bar-command-palette-trigger .ab-icon:before { | ||
| content: "\f179"; | ||
| content: "\f179" / ''; | ||
| } | ||
|
|
||
| /** | ||
| * Search | ||
| */ | ||
|
|
||





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.
Unrelated change.
I do not even find a
#wp-responsive-toggleanywhere, even in code history as of r26402, so the two rulesets probably can be removed entirely (later).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.
I just built on top of Aki's PR, I can remove it https://github.com/WordPress/wordpress-develop/pull/11108/changes#diff-4e38d3d83e223f96e67e1cf68c5b2faa0abbd3c068a2405cf0e712dd8edcf8e9R669