Skip to content

Commit

Permalink
fix(action-button): ensure disabled buttons are not interactable
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed May 19, 2021
1 parent 1342649 commit b81c3ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/action-button/src/action-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ governing permissions and limitations under the License.
flex-direction: row;
}

:host([disabled]) {
pointer-events: none;
cursor: auto;
}

:host([dir]) {
/* spectrum-css uses "-webkit-appearance: button" to workaround an
* iOS and Safari issue. However, it results in incorrect styling
Expand Down

0 comments on commit b81c3ba

Please sign in to comment.