From 08faed6c1ed4178da0498b5d93220760f2055d55 Mon Sep 17 00:00:00 2001 From: Wendy Yuchen Sun Date: Mon, 18 May 2026 17:30:08 +0800 Subject: [PATCH] chore: add aria-labelledby to delimiter control list --- src/components/core/button/segmented-control.js | 11 ++++++++++- src/pages/home/home.js | 6 +++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/components/core/button/segmented-control.js b/src/components/core/button/segmented-control.js index 46ebab9..ac79c50 100644 --- a/src/components/core/button/segmented-control.js +++ b/src/components/core/button/segmented-control.js @@ -2,10 +2,18 @@ import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; -const SegmentedControl = ({ items, value, onChange, 'aria-label': ariaLabel, buttonClassName }) => { +const SegmentedControl = ({ + items, + value, + onChange, + 'aria-label': ariaLabel, + 'aria-labelledby': ariaLabelledBy, + buttonClassName, +}) => { return (