@eqtylab/equality 4.6.0 → 4.7.0
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.
- package/CHANGELOG.md +8 -0
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
4
4
|
|
|
5
|
+
## 4.7.0 - 2026-09-28
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `SegmentedControls` accepts `aria-label` and `aria-labelledby`, and renders as a `group`, so a
|
|
10
|
+
screen reader announces what the segments choose between. Consumers had to wrap it in their
|
|
11
|
+
own labelled `div` to get this.
|
|
12
|
+
|
|
5
13
|
## 4.6.0 - 2026-09-25
|
|
6
14
|
|
|
7
15
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -3938,6 +3938,8 @@ var SegmentedControls = ({
|
|
|
3938
3938
|
onValueChange,
|
|
3939
3939
|
display = "both",
|
|
3940
3940
|
size = "md",
|
|
3941
|
+
"aria-label": ariaLabel,
|
|
3942
|
+
"aria-labelledby": ariaLabelledBy,
|
|
3941
3943
|
className
|
|
3942
3944
|
}) => {
|
|
3943
3945
|
const allHaveIcons = options.every((option) => option.icon != null);
|
|
@@ -3975,6 +3977,9 @@ var SegmentedControls = ({
|
|
|
3975
3977
|
"div",
|
|
3976
3978
|
{
|
|
3977
3979
|
ref: containerRef,
|
|
3980
|
+
role: "group",
|
|
3981
|
+
"aria-label": ariaLabel,
|
|
3982
|
+
"aria-labelledby": ariaLabelledBy,
|
|
3978
3983
|
className: cn(
|
|
3979
3984
|
styles49__default.default["segmented-controls"],
|
|
3980
3985
|
styles49__default.default[`size--${size}`],
|