Skip to content

Commit 42c0565

Browse files
alessiopelliccionekirjs
authored andcommitted
fix(docs-infra): prevent icons from being translated in aria guide
This commit adds the `translate="no"` attribute to the icon elements to ensure they are preserved in their original form and not modified by translation tools. Closes angular#65406
1 parent fc2e414 commit 42c0565

File tree

92 files changed

+742
-742
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+742
-742
lines changed

adev/src/content/examples/aria/accordion/src/disabled-focusable/material/app/app.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h3>
66
aria-hidden="true"
77
class="material-symbols-outlined expand-icon"
88
[class.expand-icon__expanded]="trigger1.expanded()"
9-
>keyboard_arrow_up</span
9+
translate="no">keyboard_arrow_up</span
1010
>
1111
</span>
1212
</h3>
@@ -27,7 +27,7 @@ <h3>
2727
aria-hidden="true"
2828
class="material-symbols-outlined expand-icon"
2929
[class.expand-icon__expanded]="trigger2.expanded()"
30-
>keyboard_arrow_up</span
30+
translate="no">keyboard_arrow_up</span
3131
>
3232
</span>
3333
</h3>
@@ -48,7 +48,7 @@ <h3>
4848
aria-hidden="true"
4949
class="material-symbols-outlined expand-icon"
5050
[class.expand-icon__expanded]="trigger3.expanded()"
51-
>keyboard_arrow_up</span
51+
translate="no">keyboard_arrow_up</span
5252
>
5353
</span>
5454
</h3>

adev/src/content/examples/aria/accordion/src/disabled-focusable/retro/app/app.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ <h3>
55
<span
66
aria-hidden="true"
77
class="material-symbols-outlined"
8-
>{{trigger1.expanded() ? 'lock_open_right' : 'lock'}}</span
8+
translate="no">{{trigger1.expanded() ? 'lock_open_right' : 'lock'}}</span
99
>
1010
</span>
1111
</h3>
@@ -21,7 +21,7 @@ <h3>
2121
<span
2222
aria-hidden="true"
2323
class="material-symbols-outlined"
24-
>{{trigger2.expanded() ? 'lock_open_right' : 'lock'}}</span
24+
translate="no">{{trigger2.expanded() ? 'lock_open_right' : 'lock'}}</span
2525
>
2626
</span>
2727
</h3>
@@ -37,7 +37,7 @@ <h3>
3737
<span
3838
aria-hidden="true"
3939
class="material-symbols-outlined"
40-
>{{trigger3.expanded() ? 'lock_open_right' : 'lock'}}</span
40+
translate="no">{{trigger3.expanded() ? 'lock_open_right' : 'lock'}}</span
4141
>
4242
</span>
4343
</h3>

adev/src/content/examples/aria/accordion/src/multi-expansion/material/app/app.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h3>
66
aria-hidden="true"
77
class="material-symbols-outlined expand-icon"
88
[class.expand-icon__expanded]="trigger1.expanded()"
9-
>keyboard_arrow_up</span
9+
translate="no">keyboard_arrow_up</span
1010
>
1111
</span>
1212
</h3>
@@ -27,7 +27,7 @@ <h3>
2727
aria-hidden="true"
2828
class="material-symbols-outlined expand-icon"
2929
[class.expand-icon__expanded]="trigger2.expanded()"
30-
>keyboard_arrow_up</span
30+
translate="no">keyboard_arrow_up</span
3131
>
3232
</span>
3333
</h3>
@@ -48,7 +48,7 @@ <h3>
4848
aria-hidden="true"
4949
class="material-symbols-outlined expand-icon"
5050
[class.expand-icon__expanded]="trigger3.expanded()"
51-
>keyboard_arrow_up</span
51+
translate="no">keyboard_arrow_up</span
5252
>
5353
</span>
5454
</h3>

adev/src/content/examples/aria/accordion/src/multi-expansion/retro/app/app.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ <h3>
55
<span
66
aria-hidden="true"
77
class="material-symbols-outlined"
8-
>{{trigger1.expanded() ? 'lock_open_right' : 'lock'}}</span
8+
translate="no">{{trigger1.expanded() ? 'lock_open_right' : 'lock'}}</span
99
>
1010
</span>
1111
</h3>
@@ -21,7 +21,7 @@ <h3>
2121
<span
2222
aria-hidden="true"
2323
class="material-symbols-outlined"
24-
>{{trigger2.expanded() ? 'lock_open_right' : 'lock'}}</span
24+
translate="no">{{trigger2.expanded() ? 'lock_open_right' : 'lock'}}</span
2525
>
2626
</span>
2727
</h3>
@@ -37,7 +37,7 @@ <h3>
3737
<span
3838
aria-hidden="true"
3939
class="material-symbols-outlined"
40-
>{{trigger3.expanded() ? 'lock_open_right' : 'lock'}}</span
40+
translate="no">{{trigger3.expanded() ? 'lock_open_right' : 'lock'}}</span
4141
>
4242
</span>
4343
</h3>

adev/src/content/examples/aria/accordion/src/single-expansion/material/app/app.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h3>
66
aria-hidden="true"
77
class="material-symbols-outlined expand-icon"
88
[class.expand-icon__expanded]="trigger1.expanded()"
9-
>keyboard_arrow_up</span
9+
translate="no">keyboard_arrow_up</span
1010
>
1111
</span>
1212
</h3>
@@ -27,7 +27,7 @@ <h3>
2727
aria-hidden="true"
2828
class="material-symbols-outlined expand-icon"
2929
[class.expand-icon__expanded]="trigger2.expanded()"
30-
>keyboard_arrow_up</span
30+
translate="no">keyboard_arrow_up</span
3131
>
3232
</span>
3333
</h3>
@@ -48,7 +48,7 @@ <h3>
4848
aria-hidden="true"
4949
class="material-symbols-outlined expand-icon"
5050
[class.expand-icon__expanded]="trigger3.expanded()"
51-
>keyboard_arrow_up</span
51+
translate="no">keyboard_arrow_up</span
5252
>
5353
</span>
5454
</h3>

adev/src/content/examples/aria/accordion/src/single-expansion/retro/app/app.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ <h3>
55
<span
66
aria-hidden="true"
77
class="material-symbols-outlined"
8-
>{{trigger1.expanded() ? 'lock_open_right' : 'lock'}}</span
8+
translate="no">{{trigger1.expanded() ? 'lock_open_right' : 'lock'}}</span
99
>
1010
</span>
1111
</h3>
@@ -21,7 +21,7 @@ <h3>
2121
<span
2222
aria-hidden="true"
2323
class="material-symbols-outlined"
24-
>{{trigger2.expanded() ? 'lock_open_right' : 'lock'}}</span
24+
translate="no">{{trigger2.expanded() ? 'lock_open_right' : 'lock'}}</span
2525
>
2626
</span>
2727
</h3>
@@ -37,7 +37,7 @@ <h3>
3737
<span
3838
aria-hidden="true"
3939
class="material-symbols-outlined"
40-
>{{trigger3.expanded() ? 'lock_open_right' : 'lock'}}</span
40+
translate="no">{{trigger3.expanded() ? 'lock_open_right' : 'lock'}}</span
4141
>
4242
</span>
4343
</h3>

adev/src/content/examples/aria/autocomplete/src/basic/app/app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div ngCombobox filterMode="auto-select">
22
<div #origin class="autocomplete">
3-
<span class="search-icon material-symbols-outlined">search</span>
3+
<span class="search-icon material-symbols-outlined" translate="no">search</span>
44
<input
55
aria-label="Label dropdown"
66
placeholder="Select a country"
@@ -23,7 +23,7 @@
2323
@for (country of countries(); track country) {
2424
<div ngOption [value]="country" [label]="country">
2525
<span class="option-label">{{country}}</span>
26-
<span class="check-icon material-symbols-outlined">check</span>
26+
<span class="check-icon material-symbols-outlined" translate="no">check</span>
2727
</div>
2828
}
2929
</div>

adev/src/content/examples/aria/autocomplete/src/basic/material/app/app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div ngCombobox filterMode="auto-select">
22
<div #origin class="material-autocomplete">
3-
<span class="search-icon material-symbols-outlined">search</span>
3+
<span class="search-icon material-symbols-outlined" translate="no">search</span>
44
<input
55
aria-label="Label dropdown"
66
placeholder="Select a country"
@@ -23,7 +23,7 @@
2323
@for (country of countries(); track country) {
2424
<div ngOption [value]="country" [label]="country">
2525
<span class="option-label">{{country}}</span>
26-
<span class="check-icon material-symbols-outlined">check</span>
26+
<span class="check-icon material-symbols-outlined" translate="no">check</span>
2727
</div>
2828
}
2929
</div>

adev/src/content/examples/aria/autocomplete/src/basic/retro/app/app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div ngCombobox filterMode="auto-select">
22
<div #origin class="retro-autocomplete">
3-
<span class="search-icon material-symbols-outlined">search</span>
3+
<span class="search-icon material-symbols-outlined" translate="no">search</span>
44
<input
55
aria-label="Label dropdown"
66
placeholder="Select a country"
@@ -23,7 +23,7 @@
2323
@for (country of countries(); track country) {
2424
<div ngOption [value]="country" [label]="country">
2525
<span class="option-label">{{country}}</span>
26-
<span class="check-icon material-symbols-outlined">check</span>
26+
<span class="check-icon material-symbols-outlined" translate="no">check</span>
2727
</div>
2828
}
2929
</div>

adev/src/content/examples/aria/autocomplete/src/highlight/app/app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div ngCombobox filterMode="highlight">
22
<div #origin class="autocomplete">
3-
<span class="search-icon material-symbols-outlined">search</span>
3+
<span class="search-icon material-symbols-outlined" translate="no">search</span>
44
<input
55
aria-label="Label dropdown"
66
placeholder="Select a country"
@@ -23,7 +23,7 @@
2323
@for (country of countries(); track country) {
2424
<div ngOption [value]="country" [label]="country">
2525
<span class="option-label">{{country}}</span>
26-
<span class="check-icon material-symbols-outlined">check</span>
26+
<span class="check-icon material-symbols-outlined" translate="no">check</span>
2727
</div>
2828
}
2929
</div>

0 commit comments

Comments
 (0)