Skip to content
New issue

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

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

Already on GitHub? # to your account

Use title tag with n-tabs #2221

Closed
MaxMueller0815 opened this issue Jan 20, 2022 · 1 comment · Fixed by #2237
Closed

Use title tag with n-tabs #2221

MaxMueller0815 opened this issue Jan 20, 2022 · 1 comment · Fixed by #2237
Labels
bug Something isn't working

Comments

@MaxMueller0815
Copy link

TuSimple/naive-ui version (版本)

2.23.2

Vue version (Vue 版本)

3.2.26

Browser and its version (浏览器及其版本)

97.0.4692.71

System and its version (系统及其版本)

Ubuntu 20.04.3 LTS

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/practical-butterfly-duege?file=/src/TabTitleDEMO.vue

Reappearance steps (重现步骤)

with the attribute "title" to "" added:
Hover over tabname.
Then over the content area.
= The area below the chosen tab shows same title.

Expected results (期望的结果)

Only when hovering over tabname title should appear.

Actual results (实际的结果)

Hover over tab content: title appears as well.

Remarks (补充说明)

Is there an alternative to the title attribute one can use natively with this component?

Or is there a way one can apply title only to tabs through the component? .n-tabs-tab-wrapper -> n-tabs-tab and NOT to n-tab-pane directly (content area)?

@github-actions github-actions bot added the untriaged need to sort label Jan 20, 2022
@MaxMueller0815
Copy link
Author

MaxMueller0815 commented Jan 20, 2022

Hovering over Tabname and content gives same title.
The problem in one view:

title bug
title bug code

@Talljack Talljack added bug Something isn't working and removed untriaged need to sort labels Jan 20, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants