Skip to content

Commit

Permalink
fix(SelectInputV2): description in row should be baseline aligned (#3858
Browse files Browse the repository at this point in the history
)
  • Loading branch information
DorianMaliszewski committed Jun 10, 2024
1 parent 0531578 commit 36f2ef2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-phones-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/ui": patch
---

Fix `<SelectInputV2 />` when description is in row mode it should be aligned on baseline instead of normal
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const DisplayOption = ({
alignItems="baseline"
data-testid={`option-stack-${option.value}`}
>
<Stack gap={0.5} direction="row">
<Stack gap={0.5} direction="row" alignItems="baseline">
<Text as="span" variant="body" placement="left">
{option.label}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15004,10 +15004,10 @@ exports[`SelectInputV2 > renders correctly with label on the right and optional
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-align-items: normal;
-webkit-box-align: normal;
-ms-flex-align: normal;
align-items: normal;
-webkit-align-items: baseline;
-webkit-box-align: baseline;
-ms-flex-align: baseline;
align-items: baseline;
-webkit-box-pack: normal;
-ms-flex-pack: normal;
-webkit-justify-content: normal;
Expand Down Expand Up @@ -16138,10 +16138,10 @@ exports[`SelectInputV2 > renders correctly with label on the right and optional
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-align-items: normal;
-webkit-box-align: normal;
-ms-flex-align: normal;
align-items: normal;
-webkit-align-items: baseline;
-webkit-box-align: baseline;
-ms-flex-align: baseline;
align-items: baseline;
-webkit-box-pack: normal;
-ms-flex-pack: normal;
-webkit-justify-content: normal;
Expand Down

0 comments on commit 36f2ef2

Please sign in to comment.