feat: Change bg color when focusing tag instead of border (#751)
This commit is contained in:
@@ -57,7 +57,7 @@ export const AutocompleteTagHint = observer(
|
|||||||
<button
|
<button
|
||||||
ref={hintRef}
|
ref={hintRef}
|
||||||
type="button"
|
type="button"
|
||||||
className="sn-dropdown-item"
|
className="sn-dropdown-item focus:bg-info focus:color-info-contrast hover:color-foreground"
|
||||||
onClick={onTagHintClick}
|
onClick={onTagHintClick}
|
||||||
onFocus={onFocus}
|
onFocus={onFocus}
|
||||||
onBlur={onBlur}
|
onBlur={onBlur}
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export const AutocompleteTagResult = observer(
|
|||||||
<button
|
<button
|
||||||
ref={tagResultRef}
|
ref={tagResultRef}
|
||||||
type="button"
|
type="button"
|
||||||
className="sn-dropdown-item"
|
className="sn-dropdown-item focus:bg-info focus:color-info-contrast"
|
||||||
onClick={() => onTagOptionClick(tagResult)}
|
onClick={() => onTagOptionClick(tagResult)}
|
||||||
onFocus={onFocus}
|
onFocus={onFocus}
|
||||||
onBlur={onBlur}
|
onBlur={onBlur}
|
||||||
|
|||||||
@@ -170,9 +170,10 @@
|
|||||||
@extend .flex;
|
@extend .flex;
|
||||||
@extend .items-center;
|
@extend .items-center;
|
||||||
@extend .border-0;
|
@extend .border-0;
|
||||||
@extend .focus\:inner-ring-info;
|
@extend .focus\:shadow-none;
|
||||||
@extend .cursor-pointer;
|
@extend .cursor-pointer;
|
||||||
@extend .hover\:bg-contrast;
|
@extend .hover\:bg-contrast;
|
||||||
|
@extend .hover\:color-foreground;
|
||||||
@extend .color-text;
|
@extend .color-text;
|
||||||
@extend .bg-transparent;
|
@extend .bg-transparent;
|
||||||
@extend .px-3;
|
@extend .px-3;
|
||||||
@@ -684,6 +685,18 @@
|
|||||||
@extend .rounded-full;
|
@extend .rounded-full;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.focus\:bg-info:focus {
|
||||||
|
@extend .bg-info;
|
||||||
|
}
|
||||||
|
|
||||||
|
.focus\:color-info-contrast:focus {
|
||||||
|
@extend .color-info-contrast;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hover\:color-foreground:hover {
|
||||||
|
color: var(--sn-stylekit-foreground-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.focus\:bg-info-backdrop:focus {
|
.focus\:bg-info-backdrop:focus {
|
||||||
background-color: var(--sn-stylekit-info-backdrop-color);
|
background-color: var(--sn-stylekit-info-backdrop-color);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user