@1024pix/pix-ui 48.0.2 → 48.0.3
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.
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
{{#let (unique-id) as |titleId|}}
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
aria-hidden={{this.ariaHidden}}
|
|
5
|
+
role="img"
|
|
6
|
+
class="pix-icon"
|
|
7
|
+
aria-describedby={{if this.title titleId}}
|
|
8
|
+
...attributes
|
|
9
|
+
>
|
|
10
|
+
{{#if this.title}}
|
|
11
|
+
<title id={{titleId}}>{{this.title}}</title>
|
|
12
|
+
{{/if}}
|
|
13
|
+
<use href="/@1024pix/pix-ui/svg/pix-sprite.svg#{{this.iconName}}" />
|
|
14
|
+
</svg>
|
|
15
|
+
{{/let}}
|
|
@@ -3,8 +3,12 @@ import { warn } from '@ember/debug';
|
|
|
3
3
|
import { ICONS } from '@1024pix/pix-ui/helpers/icons';
|
|
4
4
|
|
|
5
5
|
export default class PixIcon extends Component {
|
|
6
|
-
get
|
|
7
|
-
|
|
6
|
+
get title() {
|
|
7
|
+
warn('PixIcon: @alternativeText is deprecated use @title instead', !this.args.alternativeText, {
|
|
8
|
+
id: 'pix-ui.icon.alternativeText.deprecated',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
return this.args.title || this.args.alternativeText || null;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
get ariaHidden() {
|