Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react-rating): Pass missing Rating's itemLabel prop to its state so RatingItem consumes it from context #33361

Merged
merged 5 commits into from
Dec 17, 2024

Conversation

nanabear0
Copy link
Contributor

@nanabear0 nanabear0 commented Nov 27, 2024

Previous Behavior

The Rating component didn't use the itemLabel prop, so there wasn't an option to change aria label for the ratin items

New Behavior

Now it is correctly passing it to the RatingItemContext so aria-labels are created correcty.

Related Issue(s)

@nanabear0 nanabear0 requested a review from a team as a code owner November 27, 2024 16:07
Copy link

github-actions bot commented Nov 27, 2024

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-components
react-components: entire library
1.165 MB
291.792 kB
1.165 MB
291.795 kB
24 B
3 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
69.21 kB
20.174 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
221.474 kB
64.058 kB
react-components
react-components: FluentProvider & webLightTheme
44.447 kB
14.59 kB
react-portal-compat
PortalCompatProvider
8.39 kB
2.64 kB
react-timepicker-compat
TimePicker
107.513 kB
35.791 kB
🤖 This report was generated against 870fdfd57db59eb0c549c6c12645fc50130970a4

Copy link

Pull request demo site: URL

@sopranopillow sopranopillow changed the title Making sure rating component uses the itemLabel prop. fix(react-rating): Pass missing Rating's itemLabel prop to its state so RatingItem consumes it from context Nov 27, 2024
@nanabear0 nanabear0 force-pushed the rating-aria-label-fix branch from 21d5d51 to f1835db Compare December 2, 2024 10:11
@tudorpopams tudorpopams requested review from dmytrokirpa and removed request for marcosmoura December 5, 2024 13:02
@nanabear0 nanabear0 force-pushed the rating-aria-label-fix branch from f1835db to 19aebe8 Compare December 8, 2024 18:10
@dmytrokirpa dmytrokirpa self-assigned this Dec 10, 2024
@sopranopillow
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@layershifter layershifter merged commit 084c766 into microsoft:master Dec 17, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Rating component itemLabel prop doesn't do anything
5 participants