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

fix(tabs): update highlighting when tab removed #5233

Conversation

TomJGooding
Copy link
Contributor

@TomJGooding TomJGooding commented Nov 13, 2024

Fixes #5218.

Ideally this added call to _highlight_active should only happen if the removed tab is before the active tab, but I'm not sure there's a simple way of doing that?

Please review the following checklist.

  • Docstrings on all new or modified functions / classes
  • Updated documentation
  • Updated CHANGELOG.md (where appropriate)

@TomJGooding TomJGooding marked this pull request as ready for review November 13, 2024 22:18
Copy link
Member

@darrenburns darrenburns left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thanks!

@TomJGooding
Copy link
Contributor Author

Oops, sorry didn't spot that there's was a tweak to the Tab styling yesterday. Updating the snapshot now...

@willmcgugan willmcgugan merged commit 1af8e33 into Textualize:main Nov 16, 2024
20 checks passed
@TomJGooding TomJGooding deleted the fix-tabs-update-highlighting-when-tab-removed branch November 18, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tabs.remove_tab does not update the highlighting
3 participants