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

Menu: Add AriaLabel property (#5783) #8710

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

igotinfected
Copy link
Contributor

Description

Small improvement to MudMenu by adding the AriaLabel property as was discussed in the linked issue.

Also made use of the AriaLabel property in some of the documentation examples.

Resolves #5783

How Has This Been Tested?

Visually + unit tests.

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (fix or improvement to the website or code docs)

Checklist

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@github-actions github-actions bot added enhancement New feature or request PR: needs review labels Apr 15, 2024
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.14%. Comparing base (28bc599) to head (c419b27).
Report is 77 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #8710      +/-   ##
==========================================
+ Coverage   89.82%   90.14%   +0.31%     
==========================================
  Files         412      419       +7     
  Lines       11878    12181     +303     
  Branches     2364     2397      +33     
==========================================
+ Hits        10670    10980     +310     
+ Misses        681      664      -17     
- Partials      527      537      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +31 to +33
[Parameter]
[Category(CategoryTypes.Menu.Behavior)]
public string? AriaLabel { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing summary

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! LMK if Sets the aria-label of the menu button when <see cref="ActivatorContent"/> is not set. sounds good

src/MudBlazor/Components/Menu/MudMenu.razor Outdated Show resolved Hide resolved
@henon henon merged commit 62918bb into MudBlazor:dev Apr 18, 2024
4 checks passed
@igotinfected igotinfected deleted the feature/mudmenu-aria-label branch April 18, 2024 19:13
biegehydra pushed a commit to biegehydra/MudBlazor that referenced this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR: needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessibility: Adding "aria-label" Attribute to <button> Tag Contained in <div class="mud-menu">
4 participants