From 90d66a53236963cf2c9da01d72b3dd6390232248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matuzal=C3=A9m=20Teles?= Date: Tue, 27 Nov 2018 18:31:40 -0300 Subject: [PATCH] Fixes #1242 - Coming back with the focusable API --- packages/clay-icon/src/ClayIcon.js | 9 +-------- packages/clay-icon/src/ClayIcon.soy | 7 +++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/clay-icon/src/ClayIcon.js b/packages/clay-icon/src/ClayIcon.js index 762eef9688..e514476e68 100644 --- a/packages/clay-icon/src/ClayIcon.js +++ b/packages/clay-icon/src/ClayIcon.js @@ -29,18 +29,11 @@ ClayIcon.STATE = { /** * Flag to indicate if the svg is focusable or not * @default false - * @deprecated since version 2.4.x * @instance * @memberof ClayIcon * @type {?bool} */ - focusable: Config.validator(value => { - if (value) { - console.warn( - '🚨 The `focusable` API will be deprecated and removed in the next release. See more information https://goo.gl/EycJtK' - ); - } - }), + focusable: Config.bool().value(false), /** * Id to be applied to the element. diff --git a/packages/clay-icon/src/ClayIcon.soy b/packages/clay-icon/src/ClayIcon.soy index accd5f1fd1..ccf894b279 100644 --- a/packages/clay-icon/src/ClayIcon.soy +++ b/packages/clay-icon/src/ClayIcon.soy @@ -7,6 +7,7 @@ {@param spritemap: string} {@param symbol: string} {@param? elementClasses: string} + {@param? focusable: bool} {@param? id: string} {let $attributes kind="attributes"} @@ -18,6 +19,12 @@ {/if} " + {if $focusable} + focusable="true" + {else} + focusable="false" + {/if} + {if $id} id="{$id}" {/if}