Skip to content

Commit

Permalink
[DS-354] Wrap text instead of overflowing (#167)
Browse files Browse the repository at this point in the history
- Radio
- Checkbox
- Switch
  • Loading branch information
victortrinh2 authored Oct 21, 2024
1 parent d576821 commit c53858d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-carrots-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@workleap/orbiter-ui": patch
---

Switch, Checkbox and Radio label will now wrap instead of having an ellipsis by default
4 changes: 0 additions & 4 deletions packages/components/src/checkbox/src/Checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@
/* CONTENT | LABEL */
.o-ui-checkbox-label {
margin-left: var(--hop-space-inline-sm);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: inline;
}

/* CONTENT | LABEL | REVERSE */
Expand Down
3 changes: 0 additions & 3 deletions packages/components/src/radio/src/Radio.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
/* CONTENT | LABEL */
.o-ui-radio-label {
margin-left: var(--hop-space-inline-sm);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

/* CONTENT | LABEL | REVERSE */
Expand Down
4 changes: 0 additions & 4 deletions packages/components/src/switch/src/Switch.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
.o-ui-switch-label {
grid-area: label;
margin-left: var(--hop-space-inline-sm);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: inline;
}

/* LABEL | REVERSE */
Expand Down

0 comments on commit c53858d

Please sign in to comment.