Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Add `role="region"` to flex layout div with aria-label to comply with WCAG 2.2 Level A (4.1.2) and ARIA 1.2 specification

## [0.21.5] - 2025-07-24
+ ### Fixed
Expand Down Expand Up @@ -193,4 +195,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [0.1.0]
### Added
- `flex-row` and `flex-col` blocks.
- `flex-row` and `flex-col` blocks.
2 changes: 1 addition & 1 deletion react/FlexLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const FlexLayout: StorefrontFunctionComponent<Props> = props => {
const wrappedContent = shouldUseContainer ? <Container>{content}</Container> : content

return (
<div className={handles.flexRow} id={htmlId} aria-label={arialabel ? arialabel : intl.formatMessage(
<div className={handles.flexRow} id={htmlId} role="region" aria-label={arialabel ? arialabel : intl.formatMessage(
{ id: 'store/flex-layout.flexLayout-row.aria-label' }, { sectionId: htmlId ?? 'row'})}>
{wrappedContent}
</div>
Expand Down
Loading