Skip to content

Commit

Permalink
2.5.12 release
Browse files Browse the repository at this point in the history
  • Loading branch information
enact-bot committed Feb 2, 2024
2 parents b1ecb1a + 6db0b21 commit 571b315
Show file tree
Hide file tree
Showing 26 changed files with 117 additions and 89 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dist: focal
language: node_js
node_js:
- lts/*
- 12
sudo: false
before_install:
- sudo apt-get update
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

The following is a curated list of changes in the Enact sandstone module, newest changes on the top.

## [2.5.12] - 2024-02-02

### Fixed

- `sandstone/WizardPanels` to read out the correct step when using `current` prop

## [2.5.11] - 2023-06-07

### Fixed
Expand Down
5 changes: 3 additions & 2 deletions WizardPanels/WizardPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,11 @@ const WizardPanelsBase = kind({
},

computed: {
'aria-label': ({'aria-label': label, index, noSteps, subtitle, title}) => {
'aria-label': ({'aria-label': label, current, index, noSteps, subtitle, title}) => {
if (label) return label;

const step = noSteps ? '' : new IString($L('step {num}')).format({num: index + 1}) + ' ';
const stepNum = (typeof current === 'number' && current > 0) ? current : (index + 1);
const step = noSteps ? '' : new IString($L('step {num}')).format({num: stepNum}) + ' ';
return `${step}${title} ${subtitle}`;
},
className: ({noSteps, noSubtitle, styler}) => styler.append(
Expand Down
21 changes: 21 additions & 0 deletions WizardPanels/tests/WizardPanels-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,27 @@ describe('WizardPanel Specs', () => {
}
);

test(
'should reflect the aria-label when "current" is set',
async () => {
const current = 2;
render(
<WizardPanels current={current}>
<Panel />
<Panel />
<Panel />
</WizardPanels>
);

const header = screen.getByRole('region').children[0].children[0];
const expected = `step ${current} `;

await waitFor(() => {
expect(header).toHaveAttribute('aria-label', expected);
});
}
);

test(
'should return a ref to the root Panel node',
() => {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enact/sandstone",
"version": "2.5.11",
"version": "2.5.12",
"description": "Large-screen/TV support library for Enact, containing a variety of UI components.",
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions samples/event-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"@reduxjs/toolkit": "^1.8.1",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
Expand Down
8 changes: 4 additions & 4 deletions samples/perf-scroller-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"classnames": "^2.3.1",
"ilib": "14.14.0",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions samples/perf-scroller-translate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"classnames": "^2.3.1",
"ilib": "14.14.0",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions samples/perf-virtualgridlist-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"ilib": "14.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
8 changes: 4 additions & 4 deletions samples/perf-virtualgridlist-translate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"ilib": "14.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"ilib": "14.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
8 changes: 4 additions & 4 deletions samples/perf-virtuallist-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"ilib": "14.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
8 changes: 4 additions & 4 deletions samples/perf-virtuallist-translate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"ilib": "14.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
10 changes: 5 additions & 5 deletions samples/qa-a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/webos": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"@enact/webos": "^4.5.6",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions samples/qa-dropdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions samples/qa-fonts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions samples/qa-i18n-async/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
10 changes: 5 additions & 5 deletions samples/qa-i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/webos": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"@enact/webos": "^4.5.6",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions samples/qa-scroller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions samples/qa-videoplayer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"title": "QA VideoPlayer"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions samples/qa-virtualgridlist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"@reduxjs/toolkit": "^1.8.1",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
Expand Down
8 changes: 4 additions & 4 deletions samples/qa-virtualgridlistnative-preserve-focus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"@reduxjs/toolkit": "^1.8.1",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
Expand Down
8 changes: 4 additions & 4 deletions samples/qa-virtuallist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"@reduxjs/toolkit": "^1.8.1",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
Expand Down
10 changes: 5 additions & 5 deletions samples/qa-voice-control/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"theme": "sandstone"
},
"dependencies": {
"@enact/core": "^4.5.4",
"@enact/i18n": "^4.5.4",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/sandstone": "../../",
"@enact/spotlight": "^4.5.4",
"@enact/ui": "^4.5.4",
"@enact/webos": "^4.5.4",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"@enact/webos": "^4.5.6",
"ilib": "14.14.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
Loading

0 comments on commit 571b315

Please sign in to comment.