Skip to content

Commit b1f897f

Browse files
[BUMP] Update dependency @1024pix/pix-ui to v48.9 (junior)
#10581
2 parents 9e767be + 0d3dfc4 commit b1f897f

File tree

7 files changed

+37
-31
lines changed

7 files changed

+37
-31
lines changed

junior/app/components/oralization-button.gjs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import PixButton from '@1024pix/pix-ui/components/pix-button';
2+
import PixIcon from '@1024pix/pix-ui/components/pix-icon';
23
import { action } from '@ember/object';
34
import { service } from '@ember/service';
45
import Component from '@glimmer/component';
@@ -10,9 +11,7 @@ export default class OralizationButton extends Component {
1011
@service intl;
1112

1213
get oralizationIconName() {
13-
const iconName = this.isSpeaking ? 'oralization-stop' : 'oralization-start';
14-
15-
return `/images/icons/${iconName}.svg`;
14+
return this.isSpeaking ? 'stopCircle' : 'hearing';
1615
}
1716

1817
get oralizationButtonLabel() {
@@ -71,7 +70,7 @@ export default class OralizationButton extends Component {
7170
@variant="tertiary"
7271
@triggerAction={{this.readText}}
7372
>
74-
<img alt="" src={{this.oralizationIconName}} />
73+
<PixIcon @name={{this.oralizationIconName}} />
7574
</PixButton>
7675
{{this.oralizationButtonLabel}}
7776
</div>

junior/app/styles/components/oralization-button.scss

+24-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,25 @@
55
justify-content: center;
66
width: 80px;
77
color: var(--pix-primary-500);
8-
line-height: 0.7;
8+
font-weight: 700;
9+
font-size: 1rem;
10+
line-height: 0.9;
911

1012
button {
13+
display: flex;
14+
align-items: center;
15+
justify-content: center;
16+
width: 45px;
17+
height: 45px;
1118
padding: 0;
19+
background-color: var(--pix-primary-500);
20+
21+
svg {
22+
width: auto;
23+
height: 30px;
24+
margin-left: 4px;
25+
fill: var(--pix-neutral-0);
26+
}
1227

1328
&:focus {
1429
border: 2px solid var(--pix-primary-700);
@@ -17,6 +32,14 @@
1732

1833
&--is-reading {
1934
color: var(--pix-primary-700);
35+
36+
button {
37+
background-color: var(--pix-primary-700);
38+
39+
svg {
40+
margin-left: unset;
41+
}
42+
}
2043
}
2144
}
2245

junior/app/templates/organization-code.hbs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<p class="school-code__instructions">{{t "pages.home.code-instruction"}}</p>
99
<label for="organization-code" class="school-code__label">{{t "pages.home.code-label"}}</label>
1010
<PixInputCode
11-
id="organization-code"
1211
@ariaLabel={{t "pages.home.field-description"}}
1312
@legend={{t "pages.home.code-description"}}
1413
@numInputs={{9}}

junior/package-lock.json

+9-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

junior/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@1024pix/ember-matomo-tag-manager": "^2.4.3",
3939
"@1024pix/ember-testing-library": "^3.0.6",
4040
"@1024pix/eslint-config": "^1.3.8",
41-
"@1024pix/pix-ui": "^46.15.2",
41+
"@1024pix/pix-ui": "^48.9.0",
4242
"@1024pix/stylelint-config": "^5.1.22",
4343
"@1024pix/web-components": "^0.2.6",
4444
"@babel/eslint-parser": "^7.25.8",

junior/public/images/icons/oralization-start.svg

-7
This file was deleted.

junior/public/images/icons/oralization-stop.svg

-9
This file was deleted.

0 commit comments

Comments
 (0)