-
Notifications
You must be signed in to change notification settings - Fork 42
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
Bugfix/combobox bugfixes and tweaks #2144
Conversation
Makes the behaviour consistent when clicking with a mouse and when selecting an option with keyboard.
…re added by the user or not.
…s in combobox. Done to account for screen magnifiers on screens that don't show the background color, where the checkmark is out-of-sight.
…he chips being slightly larger than the padding allowed for (equal to the width of the border)
🦋 Changeset detectedLatest commit: 99f09fb The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Endringer til review: 1a8550f9fa | 47 komponenter | 299 stories |
@@ -243,6 +246,10 @@ | |||
background-color: var(--ac-combobox-list-item-selected-bg, var(--a-surface-selected)); | |||
} | |||
|
|||
.navds-combobox__list-item--selected p { |
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.
Tror den bare trengs å settes på wrapper (for lavere specificity)
.navds-combobox__list-item--selected p { | |
.navds-combobox__list-item--selected { |
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.
Nei, .navds-body-short
overstyrer den, dessverre. Var litt usikker på å bruke p
eller om jeg burde bruke klassenavnet, men vi må i hvert fall ha en høyere spesifisitet enn .navds-body-short
. (Arv fra parent har lavere spesifisitet)
LGTM! Screen.Recording.2023-08-09.at.09.23.58.movHar her vært litt bedre UX hvis input brukte hele høyden + ut til venstre slik at popover ikke lukket seg ved mousedown |
…ot supporting :has (Firefox)
…dTarget in onBlur will be null, and we can't check that focus has entirely moved outside the Combobox.
Jeg er enig, men da vil vi sitte med et issue med andre elementer som må "floate" (absolutt posisjonere seg?) over inputen. Kunne vært interessant å teste, men vi "faker" det ved å sette fokus i input-feltet når man klikker innenfor borderen ( Fant ut at buggen skyldes at sjekken i ComboboxWrapper.onBlur feiler, da e.relatedTarget blir null når man klikker på et ikke-interaktivt element. La til tabIndex="-1", så nå skal det fungere som ønskelig. |
Description
Modifications to combobox based on feedback from the summer students++:
Change summary