Skip to content

Commit

Permalink
fix(input): set cursor to not-allowed when disabled (#101)
Browse files Browse the repository at this point in the history
* fix(input): set cursor to not-allowed when disabled

* fix(input): addressing changes
  • Loading branch information
Leotheluck authored Jul 19, 2023
1 parent 47ca6f0 commit 43ee887
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ input {
}
}

[disabled] {
@include osds-input-on-selected-host() {
opacity: .5;
cursor: not-allowed;
}

cursor: not-allowed;
}

/* Chrome, Safari, Edge, Opera */
input[type=number],
input[type=number]::-webkit-outer-spin-button,
Expand All @@ -49,14 +58,6 @@ input[type=number]::-webkit-inner-spin-button {
margin: 0;
}

[disabled] {
@include osds-input-on-selected-host() {
opacity: .5;
cursor: not-allowed;
pointer-events: none;
}
}

// apply the theme template for the component
@include ods-theme-component() {
@include osds-input-theme-color();
Expand Down

0 comments on commit 43ee887

Please sign in to comment.