Skip to content

Commit e39838e

Browse files
committed
fix(ui-text-input): better IconButton positioning inside TextInput when wrapped inside a Popover
1 parent 883262d commit e39838e

File tree

1 file changed

+2
-2
lines changed
  • packages/ui-text-input/src/TextInput

1 file changed

+2
-2
lines changed

packages/ui-text-input/src/TextInput/styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@ const generateStyle = (
208208
afterElement: {
209209
// the next couple lines (until the `label`) is needed so the IconButton looks OK inside the TextInput
210210
// explanation: if the content inside is not a button or a popover (which could contain a button) it should have some padding on the right
211-
'& > :not(button):not([data-cid$="Popover"])': {
211+
'& > :not(button):not([data-position^="Popover"])': {
212212
marginRight: componentTheme.padding
213213
},
214214
marginTop: '1px',
215-
marginBottom: '1px',
215+
marginBottom: '2px',
216216
display: 'flex',
217217
alignItems: 'center',
218218
...sizeVariants[size!],

0 commit comments

Comments
 (0)