@skyux/layout 13.0.0-alpha.3 → 13.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,15 +27,10 @@ class SkyActionButtonFixture {
|
|
|
27
27
|
* The action button's current icon type.
|
|
28
28
|
*/
|
|
29
29
|
get iconType() {
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const cls = classList.item(i);
|
|
34
|
-
if (cls.indexOf('fa-') === 0) {
|
|
35
|
-
return cls.substr(3);
|
|
36
|
-
}
|
|
30
|
+
const svgElement = this.#debugEl.query(By.css('sky-icon svg'));
|
|
31
|
+
if (svgElement) {
|
|
32
|
+
return svgElement.nativeElement.getAttribute('data-sky-icon');
|
|
37
33
|
}
|
|
38
|
-
/* istanbul ignore next */
|
|
39
34
|
return undefined;
|
|
40
35
|
}
|
|
41
36
|
#debugEl;
|