You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiSuperSelect] With prepend and append needs it's border-radius fixed in Amsterdam #5442
I fixed this one by adding fixed border-radius values depending whether it's prepend, append or both and attaches that style to euiFormControlLayout__childrenWrapper
I'm not sure whether there's a need for React component code change or will just to deal with it in its .scss file.
Please advised on the ideal way of fixing this.
Hi @jeepers3327. Thanks for attempting to fix this one. We definitely only want to fix this in the Sass files not the component code itself as it needs to align with our Sass tokens for border-radius and is currently where all those styles live. Eventually, we'll be converting to CSS-in-JS, but for now we don't want to separate where styles are written.
For EuiSuperSelect specifically, it has it's own set of styles for applying border-radius and so it isn't actually tied to the EuiFormControlLayout:
And it's further tricky because this is only an issue in the Amsterdam (now default) theme. There is a specific overrides folder in our themes/amsterdam Sass folder that where these style overrides will need to be applied.
For EuiSuperSelect specifically, it has it's own set of styles for applying border-radius and so it isn't actually tied to the EuiFormControlLayout:
May I know which file in themes/amsterdam do I need to styles for border-radius, I'm looking for a scss file which contains euiSuperSelectControl class but I haven't find it.
Activity
jeepers3327 commentedon Dec 6, 2021
Hi @cchaos .
I fixed this one by adding fixed border-radius values depending whether it's prepend, append or both and attaches that style to
euiFormControlLayout__childrenWrapperAppend:

Prepend:

Both:

I'm not sure whether there's a need for React component code change or will just to deal with it in its
.scssfile.Please advised on the ideal way of fixing this.
Thanks.
cchaos commentedon Dec 6, 2021
Hi @jeepers3327. Thanks for attempting to fix this one. We definitely only want to fix this in the Sass files not the component code itself as it needs to align with our Sass tokens for border-radius and is currently where all those styles live. Eventually, we'll be converting to CSS-in-JS, but for now we don't want to separate where styles are written.
For EuiSuperSelect specifically, it has it's own set of styles for applying border-radius and so it isn't actually tied to the EuiFormControlLayout:

And it's further tricky because this is only an issue in the Amsterdam (now default) theme. There is a specific
overridesfolder in ourthemes/amsterdamSass folder that where these style overrides will need to be applied.jeepers3327 commentedon Dec 7, 2021
May I know which file in
themes/amsterdamdo I need to styles for border-radius, I'm looking for ascssfile which containseuiSuperSelectControlclass but I haven't find it.cchaos commentedon Dec 7, 2021
There isn't one yet for the super select component. You can follow the pattern of this file: https://github.com/elastic/eui/blob/main/src/themes/amsterdam/overrides/_mark.scss and create a new one called
_super_select.scssimporting it in theindex.scssfile in the same folder[EuiSelect] & [EuiSuperSelect] Update to new EuiFormControlLayout props
[Form controls] Added `alert` icon indicators for invalid state (#5738)