Skip to content

Commit

Permalink
Merge pull request #225 from BouyguesTelecom/fix/padding-right-select
Browse files Browse the repository at this point in the history
fix padding right for select
  • Loading branch information
air-one-x authored Dec 16, 2024
2 parents 8090d7a + 6c69c3d commit 0c352b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/react-template/screens/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const SelectView = (): JSX.Element => {
<SelectOption id="id_two" value="opt_two" label="Toto" />
<SelectOption id="id_four" value="disabled" label="disabled" disabled />
<SelectOption id="id_three" value="Venus" label="Venus" />
<SelectOption id="id_four" value="Solar saint clair" label="SolarSaintClair" />
</Select>
<Button onClick={() => setOptions((prev) => [...prev, 'Venus'])} variant="PRIMARY">
Set Venus
Expand Down Expand Up @@ -130,6 +131,7 @@ export const SelectView = (): JSX.Element => {
<SelectOption id="id_two" value="opt_two" label="Toto" />
<SelectOption id="id_three" value="Venus" label="Venus" />
<SelectOption id="id_four" value="disabled" label="disabled" disabled />
<SelectOption id="id_five" value="Solar saint clair plutonium enigmus" label="Solar saint clair plutonium enigmus" />
</Select>

<Title level={TitleLevels.FOUR}>With icon</Title>
Expand All @@ -148,6 +150,8 @@ export const SelectView = (): JSX.Element => {
<SelectOption id="id_two" value="opt_two" label="Toto" />
<SelectOption id="id_three" value="Venus" label="Venus" />
<SelectOption id="id_four" value="disabled" label="disabled" disabled />
<SelectOption id="id_five" value="Solar saint clair plutonium enigmus" label="Solar saint clair plutonium enigmus" />

</Select>
</Section>
</>
Expand Down
2 changes: 2 additions & 0 deletions packages/styles/framework/src/elements/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
select {
width: 100%;
@include input;
padding-right: 40px;
text-overflow: ellipsis;

&:focus {
padding-left: 15px !important;
Expand Down

0 comments on commit 0c352b3

Please sign in to comment.