Skip to content

Commit 35ee3b2

Browse files
authored
Merge pull request #100 from toggle-corp/fix/styling
fix(generic-option): fix action button styling
2 parents e086202 + 34a2b5d commit 35ee3b2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/components/GenericOption/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ function GenericOption<P extends ContentBaseProps, OK extends OptionKey, O>({
109109
>
110110
<RawButton
111111
elementRef={divRef}
112+
// FIXME: Need to use consistent intentional styling for this
112113
className={_cs(styles.optionRenderer, containerClassName, optionContainerClassName)}
113114
onClick={handleClick}
114115
onMouseMove={handleMouseMove}

src/components/GenericOption/styles.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99

1010
.option-renderer {
1111
flex-grow: 1;
12+
/* FIXME: This is a hack to fix styling for action buttons.
13+
* We need consistent styling for this starting from SelectInputContainer. */
14+
flex-shrink: unset!important;
1215
}
1316
}

0 commit comments

Comments
 (0)