Skip to content

Commit a64890a

Browse files
committed
fix: select input size small
1 parent 18c6184 commit a64890a

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.changeset/loud-groups-float.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@ultraviolet/ui": patch
3+
---
4+
5+
`SelectInput`:
6+
- click outside should work in every context
7+
- fix placeholder alignment when small

packages/ui/src/components/Popup/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export type PositionsType = {
6262
* This event handle allow us to not bubble the event to document.body like this react-select works fine
6363
*/
6464
const stopClickPropagation: MouseEventHandler = event => {
65-
event.nativeEvent.stopImmediatePropagation()
65+
event.stopPropagation()
6666
}
6767

6868
type PopupRole = 'dialog' | 'tooltip' | 'popup' | string

packages/ui/src/components/SelectInput/components/selectBar.css.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export const selectBar = recipe({
7474
size: {
7575
small: {
7676
height: theme.sizing[INPUT_SIZE_HEIGHT.small],
77+
padding: 0,
7778
paddingLeft: theme.space[1],
7879
},
7980
medium: {

0 commit comments

Comments
 (0)