themesberg / themesberg/flowbite
The Blazor will normalize the aria-selected='true' to aria-selected, so can we fix the code add this condition check?
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
Desktop (please complete the following information):
All platforms supported by Blazor
Smartphone (please complete the following information):
All devices supported by Blazor
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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