Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fine-gifts-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/ui": minor
---

`UnitInput`: remove `&&` in style, since it is not needed anymore and replace id use with vanilla-extract class
19 changes: 9 additions & 10 deletions packages/ui/src/components/UnitInput/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
style,
styleVariants,
} from '@vanilla-extract/css'
import { selectBarBase } from '../SelectInput/components/selectBar.css'

export const widthSelectInput = createVar()

Expand Down Expand Up @@ -173,21 +174,19 @@ export const unitInputSize = styleVariants({
})

export const unitInputUnitWidth = style({
/** TODO remove selector when selectInput uses vanilla extract */
selectors: {
'&&': {
width: widthSelectInput,
},
},
width: widthSelectInput,
})

export const unitInputUnit = style({})

globalStyle(`${unitInputUnit} #unit`, {
globalStyle(`${unitInputUnit} ${selectBarBase}`, {
border: 'none',
background: 'transparent',
})

globalStyle(`${unitInputUnit} #unit:focus, ${unitInputUnit} #unit:active, `, {
boxShadow: 'none',
})
globalStyle(
`${unitInputUnit} ${selectBarBase}:focus, ${unitInputUnit} ${selectBarBase}:active, `,
{
boxShadow: 'none',
},
)
Loading