-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(AutoComplete.jsx): Migrated to css modules and updated types and…
… snapshots
- Loading branch information
1 parent
81e7ae0
commit 10ab4a7
Showing
6 changed files
with
154 additions
and
193 deletions.
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
:root { | ||
--max-items-visibility: 7; | ||
--item-height: 44px; | ||
--dropitem-font-size: calc(var(--qtm-base-font-size) * 0.875); | ||
} | ||
|
||
.wrapper { | ||
position: relative; | ||
color: var(--qtm-colors-neutral-700); | ||
} | ||
|
||
.input-wrapper { | ||
position: relative; | ||
} | ||
|
||
.wrapper-dark { | ||
color: var(--qtm-colors-neutral-0); | ||
} | ||
|
||
.input-text { | ||
margin-top: var(--qtm-spacing-xsmall); | ||
} | ||
|
||
.input-icon { | ||
cursor: pointer; | ||
position: absolute; | ||
right: var(--qtm-spacing-medium); | ||
bottom: calc(var(--qtm-spacing-xsmall) * 1.25); | ||
width: calc(var(--qtm-base-font-size) * 1.5); | ||
} | ||
|
||
.input-error-icon-default { | ||
color: var(--qtm-colors-error-700); | ||
} | ||
|
||
.input-error-icon-dark { | ||
color: inherit; | ||
} | ||
|
||
.polite-status { | ||
border: 0; | ||
clip: rect(0 0 0 0); | ||
height: 1px; | ||
margin: -1px; | ||
overflow: hidden; | ||
padding: 0; | ||
position: absolute; | ||
width: 1px; | ||
} | ||
|
||
.list-suggestions { | ||
border-radius: 4px; | ||
box-sizing: border-box; | ||
list-style: none; | ||
max-height: calc(var(--item-height) * var(--max-items-visibility)); | ||
overflow: auto; | ||
padding: 0; | ||
position: absolute; | ||
width: 100%; | ||
z-index: 1; | ||
background-color: var(--qtm-colors-neutral-0); | ||
margin-top: var(--qtm-spacing-xxsmall); | ||
} | ||
|
||
.item-suggestions { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
box-sizing: border-box; | ||
cursor: pointer; | ||
height: var(--item-height); | ||
color: var(--qtm-colors-neutral-700); | ||
font-size: var(--dropitem-font-size); | ||
background-color: var(--qtm-colors-neutral-0); | ||
padding: var(--qtm-spacing-xsmall) var(--qtm-spacing-medium); | ||
} | ||
|
||
.item-suggestions[aria-selected='true'], | ||
.item-suggestions:hover { | ||
background-color: var(--qtm-colors-neutral-100); | ||
} |
Oops, something went wrong.