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

feat(module: tooltip): enable setting TabIndex via parameter #2567

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

lukblazewicz
Copy link
Contributor

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • Bundle size optimization
  • Performance optimization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

#2566

💡 Background and solution

In the current shape, tooltip component is stealing focus (when user is jumping through elements on the page using Tab key) even if children elements of the tooltip have tabindex set to -1. Enabling customization of tooltip's tabindex via parameter allows developer to alter this behavior if needed. The default behavior (tabindex="0") required for proper functioning of the focus trigger (#2404) remains the same, so we are on the safe side - it's up to the user to consciously opt-out.

📝 Changelog

Language Changelog
🇺🇸 English Tooltip: enable setting TabIndex via parameter.
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Changelog is provided or not needed

@github-actions
Copy link

github-actions bot commented Jul 13, 2022

@codecov
Copy link

codecov bot commented Jul 13, 2022

Codecov Report

Merging #2567 (7c61d04) into master (bf62fac) will increase coverage by 1.88%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #2567      +/-   ##
==========================================
+ Coverage   27.70%   29.58%   +1.88%     
==========================================
  Files         497      520      +23     
  Lines       33445    25631    -7814     
  Branches        0      250     +250     
==========================================
- Hits         9265     7583    -1682     
+ Misses      24180    18008    -6172     
- Partials        0       40      +40     
Impacted Files Coverage Δ
components/tooltip/Tooltip.razor 30.76% <ø> (+6.76%) ⬆️
components/tooltip/Tooltip.razor.cs 42.10% <0.00%> (+11.07%) ⬆️
components/core/Helpers/MemberPath/PathNode.cs 46.15% <0.00%> (-8.85%) ⬇️
components/core/Reflection/TypeDefined.cs 77.77% <0.00%> (-7.94%) ⬇️
components/input/InputGroup.razor.cs 87.50% <0.00%> (-6.95%) ⬇️
...ponents/date-picker/types/DatePickerPlaceholder.cs 22.72% <0.00%> (-4.20%) ⬇️
...ponents/core/Component/Overlay/type/TriggerType.cs 81.25% <0.00%> (-2.97%) ⬇️
components/core/Helpers/DateHelper.cs 80.00% <0.00%> (-2.71%) ⬇️
...nts/core/Component/Overlay/OverlayTrigger.razor.cs 52.91% <0.00%> (-2.69%) ⬇️
components/core/Component/Overlay/Overlay.razor.cs 66.86% <0.00%> (-2.52%) ⬇️
... and 425 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf62fac...7c61d04. Read the comment docs.

Copy link
Member

@ElderJames ElderJames left a comment

Choose a reason for hiding this comment

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

LGTM

@ElderJames ElderJames merged commit 506f8ca into ant-design-blazor:master Jul 14, 2022
ElderJames pushed a commit that referenced this pull request Sep 6, 2022
Co-authored-by: Łukasz Błażewicz <lukasz.blazewicz@homebook.pl>
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.

None yet

2 participants