Skip to content

Commit

Permalink
Added fix for switch click event
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcconechy committed Jul 12, 2024
1 parent f34fdd2 commit 4f5d2d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- `[Modal]` Removed accordion fixed width when used in modal. ([NG#1719](https://github.com/infor-design/enterprise-ng/issues/1719))
- `[Tab]` Selecting an item in the appmenu accordion will also select the corresponding assigned tab to it (via `tab-id`). ([NG#1665](https://github.com/infor-design/enterprise-ng/issues/1665))
- `[Tab]` Selecting tabs in overflow menu will move the tab to a visible space. ([#8880](https://github.com/infor-design/enterprise/issues/8880))
- `[Switch]` Fix issue of not being able to click the label. ([#8896](https://github.com/infor-design/enterprise/issues/8896))

## v4.97.0

Expand Down
8 changes: 2 additions & 6 deletions src/components/switch/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ $handle-compact-width: 16px;
}
}

label,
.label-text {
pointer-events: none;
}

label::before,
label::after,
.label-text::before,
Expand Down Expand Up @@ -108,6 +103,7 @@ $handle-compact-width: 16px;
border-radius: 99px;
box-sizing: border-box;
inset-inline-start: 0;
top: -2px;
}

~ .label-text::before,
Expand All @@ -129,7 +125,7 @@ $handle-compact-width: 16px;
background-color: $ids-color-palette-white;
border-radius: 99px;
inset-inline-start: 2px;
top: 2px;
top: 0;
}
}

Expand Down

0 comments on commit 4f5d2d4

Please sign in to comment.