mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
[Wildcard]: Fix MultiCombobox Input UI (#57898)
Fix MultiCombobox Input UI
This commit is contained in:
parent
6029d04285
commit
33aec6bd0f
@ -1,5 +1,5 @@
|
||||
// :where() is used to fix the CSS ordering issue with the Toast component
|
||||
// See https: //github.com/sourcegraph/sourcegraph/issues/42217
|
||||
// See https://github.com/sourcegraph/sourcegraph/issues/42217
|
||||
:where(.card) {
|
||||
--card-bg: var(--color-bg-1);
|
||||
--card-border-color: var(--border-color-2);
|
||||
|
||||
@ -57,12 +57,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
.input {
|
||||
// :root selector is needed here in order to override .form-control
|
||||
// global CSS class, since we don't have any control over CSS order files
|
||||
// we can't ensure wildcard styles prevalence over global css styles.
|
||||
// Therefore we have to increase cascade speciality synthetically.
|
||||
:root .input {
|
||||
border: none;
|
||||
outline: none;
|
||||
padding: 0 0 0 0.5rem;
|
||||
box-shadow: none !important;
|
||||
height: 1.75rem;
|
||||
|
||||
&:focus-visible {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.pill {
|
||||
|
||||
@ -26,6 +26,12 @@ const decorator: Decorator = story => (
|
||||
const config: Meta = {
|
||||
title: 'wildcard/MultiCombobox',
|
||||
decorators: [decorator],
|
||||
parameters: {
|
||||
chromatic: {
|
||||
enableDarkMode: true,
|
||||
disableSnapshot: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default config
|
||||
|
||||
Loading…
Reference in New Issue
Block a user