Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit c678149

Browse files
authored
fix: wrong label space calculation in selects (#189)
* Fix wrong calculation for spacing in Selects labels * Package version * Storyshots
1 parent a1d2b38 commit c678149

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gnosis.pm/safe-react-components",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Gnosis UI components",
55
"main": "dist/index.min.js",
66
"typings": "dist/index.d.ts",

src/inputs/Select/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function Select({
9191
onOpen={handleOpen}
9292
value={activeItemId}
9393
onChange={handleChange}
94-
label={id ? id : 'generic-select'}
94+
label={label}
9595
variant="outlined"
9696
disabled={disabled}
9797
{...rest}>

tests/inputs/AddressInput/__snapshots__/AddressInput.stories.storyshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ exports[`Storyshots Inputs/AddressInput Simple Address Input 1`] = `
739739
className="PrivateNotchedOutline-legendLabelled-101 PrivateNotchedOutline-legendNotched-102"
740740
>
741741
<span>
742-
generic-select
742+
Network
743743
</span>
744744
</legend>
745745
</fieldset>

tests/inputs/Select/__snapshots__/select.stories.storyshot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ exports[`Storyshots Inputs/Select Disabled Select 1`] = `
7070
className="PrivateNotchedOutline-legendLabelled-115"
7171
>
7272
<span>
73-
error-select
73+
Select Token
7474
</span>
7575
</legend>
7676
</fieldset>
@@ -148,7 +148,7 @@ exports[`Storyshots Inputs/Select Error Select 1`] = `
148148
className="PrivateNotchedOutline-legendLabelled-119"
149149
>
150150
<span>
151-
error-select
151+
Select Token
152152
</span>
153153
</legend>
154154
</fieldset>
@@ -231,7 +231,7 @@ exports[`Storyshots Inputs/Select Simple Select 1`] = `
231231
className="PrivateNotchedOutline-legendLabelled-123"
232232
>
233233
<span>
234-
simple-select
234+
Select Token
235235
</span>
236236
</legend>
237237
</fieldset>

0 commit comments

Comments
 (0)