-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flag to indicate when focusable is true or not | Fixes #536 #563
Conversation
packages/clay-icon/src/ClayIcon.js
Outdated
@@ -25,6 +25,15 @@ ClayIcon.STATE = { | |||
*/ | |||
elementClasses: Config.string(), | |||
|
|||
/** | |||
* Flag to indicate when svg focusable or not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: Flag to indicate if the svg is focusable or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks better, thanks!
@@ -20,6 +21,12 @@ | |||
{/if} | |||
" | |||
|
|||
{if $focusable} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be written focusable="{$focusable == true}"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the attributes do not allow bool to be used focusable="{$focusable == true ? 'true' : 'false'}"
(is that what you meant?). Sounds good to you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, leave it as it was 😄 Thx!
Merged, thx! |
No description provided.