themesberg / themesberg/flowbite

The Blazor will normalize the aria-selected='true' to aria-selected, so can we fix the code add this condition check?

Open
#745 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
9.4k
Forks
862
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
I developed a Blazor app with Flowbite. Despite the Tabs components working well, the Blazor will normalize the 'aria-selected' attribute without a 'true' value. The final result of this issue is that the default selected tab does not work.

To Reproduce
Steps to reproduce the behavior:
Create a Blazor project, referencing the Flowbite and tabs component. Then create the tab item in a loop logic.

Expected behavior
The default selected tab works in the Blazor app.

Screenshots
image

Desktop (please complete the following information):
All platforms supported by Blazor

Smartphone (please complete the following information):
All devices supported by Blazor

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the Flowbite Tabs component and reproduce the issue in a Blazor project with tab items created in a loop. Check how the aria-selected attribute is handled when Blazor normalizes its true value; done means the default selected tab works in the Blazor app.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.