Skip to content

Commit

Permalink
fix: #88 select incorrect height (#96)
Browse files Browse the repository at this point in the history
* fix: #88 select component incorrect height

* fix: #88 select incorrect height
  • Loading branch information
willmcvay authored Apr 10, 2024
1 parent f5f3e6b commit fcc0655
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
10 changes: 9 additions & 1 deletion src/components/form-layout/form-layout.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { TextArea } from '../textarea'
import { MultiSelectInput } from '../multi-select'
import { Button, ButtonGroup } from '../button'
import { Label } from '../label'
import { Select } from '../select'

export default {
title: 'FormLayout',
Expand Down Expand Up @@ -105,7 +106,14 @@ export const ComplexForm = {
<InputGroup icon="calendar" label="Date of Birth" type="date" />
</InputWrap>
<InputWrap>
<InputGroup icon="email" label="Email" type="text" />
<InputGroup>
<Label>Select Option</Label>
<Select>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</Select>
</InputGroup>
</InputWrap>
<InputWrapSmall>
<InputGroup type="checkbox" label="Status" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/select/__styles__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const ElSelect = styled.select`
background-color: var(--component-input-bg);
padding: 0 0.6875rem;
padding-right: 2rem;
height: 2rem;
height: 2.25rem;
appearance: none;
border: var(--component-input-border);
position: relative;
Expand Down
5 changes: 3 additions & 2 deletions src/storybook/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ Beta versions should be relatively stable but subject to occssional breaking cha

### **4.3.0 - 11/04/24**

- Fixes issue where inline PersistentNotification z-index interfeares with Nav
- Fixes issue where Modal goes off the screen if too much content is included. Now scrolls and has a max height.
- Fixes issue where inline `PersistentNotification` z-index interfeares with Nav
- Fixes issue where `Modal` goes off the screen if too much content is included. Now scrolls and has a max height.
- Fixes `Select` component height so it matches that of an input.

### **4.2.0 - 10/04/24**

Expand Down

0 comments on commit fcc0655

Please sign in to comment.