-
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
update/3329: Changed autocomplete menu "ul > li > button" to "div > button" #3343
Merged
BoardJames
merged 15 commits into
master
from
update/3329-autocomplete-aria-markup-improvement
Nov 13, 2017
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
829dfea
update/3329: Changed autocomplete menu "ul > li > button" to "div > b…
tiny-james 3c6b8f9
update/3329: Updated selector to be more specific to fix tests
tiny-james 570fbee
update/3329: Fix styling - images don't shrink, text has max-width
tiny-james 73a6231
Merge branch 'master' into update/3329-autocomplete-aria-markup-impro…
tiny-james c229639
update/3329: specify profile picture size to avoid resizing after load
tiny-james fa85051
update/3329: ESC suppresses popup, CTRL+SPACE reshows; List count spo…
tiny-james 7d8aedb
Merge branch 'master' into update/3329-autocomplete-aria-markup-impro…
tiny-james 49413dc
Merge branch 'master' into update/3329-autocomplete-aria-markup-impro…
tiny-james 334ed13
update/3329: Autocompleter matches after word boundaries or space
tiny-james 5c2570c
Merge branch 'master' into update/3329-autocomplete-aria-markup-impro…
tiny-james 45c3a55
update/3329: Fix the list staying suppressed when the cursor is moved
tiny-james 0d0e8f2
Merge branch 'master' into update/3329-autocomplete-aria-markup-impro…
tiny-james b3325c1
update/3329: fixed withFocusOutside position in call order
tiny-james 5976604
update/3329: Renamed classes to follow BEM style guide
tiny-james bdeff5a
update/3329: Bracketed test of turnary statement to improve readability
tiny-james File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,35 @@ | ||
.blocks-block-autocomplete .dashicon { | ||
.blocks-autocompleters__block .dashicon { | ||
margin-right: 8px; | ||
} | ||
|
||
.blocks-user-autocomplete img { | ||
margin-right: 8px; | ||
} | ||
|
||
.blocks-user-autocomplete .slug { | ||
margin-left: 8px; | ||
color: $dark-gray-100; | ||
} | ||
.blocks-autocompleters__user { | ||
.blocks-autocompleters__user-avatar { | ||
margin-right: 8px; | ||
flex-grow: 0; | ||
flex-shrink: 0; | ||
max-width: none; // we must override the gutenberg default of 100% | ||
width: 24px; // avoid jarring resize by seting the size upfront | ||
height: 24px; | ||
} | ||
.blocks-autocompleters__user-name { | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
max-width: 200px; | ||
flex-shrink: 0; | ||
flex-grow: 1; | ||
} | ||
.blocks-autocompleters__user-slug { | ||
margin-left: 8px; | ||
color: $dark-gray-100; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
overflow: none; | ||
max-width: 100px; | ||
flex-grow: 0; | ||
flex-shrink: 0; | ||
} | ||
&:hover .blocks-autocompleters__user-slug { | ||
color: $blue-medium-300; | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
One of the benefits of using a BEM convention is that it eliminates the need for nesting in many cases, so this could be moved to a top-level style definition.