@hig/icon-button
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -430,2 +430,3 @@ import React, { Component } from 'react'; | ||
var _props = this.props, | ||
disabled = _props.disabled, | ||
onBlur = _props.onBlur, | ||
@@ -437,3 +438,3 @@ onFocus = _props.onFocus, | ||
onMouseUp = _props.onMouseUp, | ||
props = _objectWithoutProperties$1(_props, ["onBlur", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp"]); | ||
props = _objectWithoutProperties$1(_props, ["disabled", "onBlur", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp"]); | ||
@@ -461,5 +462,6 @@ return React.createElement( | ||
return React.createElement(IconButtonPresenter, _extends$2({ | ||
hasFocus: hasFocus, | ||
hasHover: hasHover, | ||
isPressed: isPressed, | ||
disabled: disabled, | ||
hasFocus: hasFocus && !disabled, | ||
hasHover: hasHover && !disabled, | ||
isPressed: isPressed && !disabled, | ||
onBlur: handleBlur, | ||
@@ -466,0 +468,0 @@ onFocus: handleFocus, |
@@ -437,2 +437,3 @@ 'use strict'; | ||
var _props = this.props, | ||
disabled = _props.disabled, | ||
onBlur = _props.onBlur, | ||
@@ -444,3 +445,3 @@ onFocus = _props.onFocus, | ||
onMouseUp = _props.onMouseUp, | ||
props = _objectWithoutProperties$1(_props, ["onBlur", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp"]); | ||
props = _objectWithoutProperties$1(_props, ["disabled", "onBlur", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp"]); | ||
@@ -468,5 +469,6 @@ return React__default.createElement( | ||
return React__default.createElement(IconButtonPresenter, _extends$2({ | ||
hasFocus: hasFocus, | ||
hasHover: hasHover, | ||
isPressed: isPressed, | ||
disabled: disabled, | ||
hasFocus: hasFocus && !disabled, | ||
hasHover: hasHover && !disabled, | ||
isPressed: isPressed && !disabled, | ||
onBlur: handleBlur, | ||
@@ -473,0 +475,0 @@ onFocus: handleFocus, |
@@ -0,1 +1,8 @@ | ||
# [@hig/icon-button-v2.4.2](https://github.com/Autodesk/hig/compare/@hig/icon-button@2.4.1...@hig/icon-button@2.4.2) (2020-09-22) | ||
### Bug Fixes | ||
* do not trigger focus/hover/pressed states when disabled ([19ab026](https://github.com/Autodesk/hig/commit/19ab026)) | ||
# [@hig/icon-button-v2.4.1](https://github.com/Autodesk/hig/compare/@hig/icon-button@2.4.0...@hig/icon-button@2.4.1) (2020-05-12) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@hig/icon-button", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "HIG IconButton component", | ||
@@ -35,3 +35,3 @@ "author": "Autodesk Inc.", | ||
"@hig/theme-context": "^3.0.0", | ||
"@hig/theme-data": "^2.16.0", | ||
"@hig/theme-data": "^2.18.0", | ||
"react": "^15.4.1 || ^16.3.2" | ||
@@ -38,0 +38,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54224
1239