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)!: set the default highlight_style #635

Merged
merged 2 commits into from
Dec 4, 2023
Merged

Conversation

joshka
Copy link
Member

@joshka joshka commented Nov 19, 2023

Previously the default highlight_style was set to Style::default(),
which meant that the highlight style was the same as the normal style.
This change sets the default highlight_style to reversed text.

BREAKING CHANGE: The Tab widget now renders the highlight style as
reversed text by default. This can be changed by setting the
highlight_style field of the Tab widget.

@github-actions github-actions bot added the Type: Breaking Change This change will cause application code to break and must be noted in the breaking changes docs etc. label Nov 19, 2023
Copy link

codecov bot commented Nov 19, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (18e19f6) 90.5% compared to head (defaab1) 90.7%.

Files Patch % Lines
src/widgets/tabs.rs 95.8% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main    #635     +/-   ##
=======================================
+ Coverage   90.5%   90.7%   +0.1%     
=======================================
  Files         41      41             
  Lines      11980   11978      -2     
=======================================
+ Hits       10853   10867     +14     
+ Misses      1127    1111     -16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Previously the default highlight_style was set to `Style::default()`,
which meant that the highlight style was the same as the normal style.
This change sets the default highlight_style to reversed text.

BREAKING CHANGE: The `Tab` widget now renders the highlight style as
reversed text by default. This can be changed by setting the
`highlight_style` field of the `Tab` widget.
@joshka joshka force-pushed the tabs-highlight-default branch from 16e58db to 634e003 Compare November 19, 2023 23:35
@joshka joshka added this to the v0.25.0 milestone Nov 21, 2023
Copy link
Member

@orhun orhun left a comment

Choose a reason for hiding this comment

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

I like this change, LGTM!

@joshka
Copy link
Member Author

joshka commented Nov 23, 2023

Added commit just fixes up conflict in breaking_changes.md

@orhun
Copy link
Member

orhun commented Dec 2, 2023

Ping @kdheepak for additional review.

@joshka joshka merged commit e4579f0 into main Dec 4, 2023
32 of 33 checks passed
@joshka joshka deleted the tabs-highlight-default branch December 4, 2023 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Breaking Change This change will cause application code to break and must be noted in the breaking changes docs etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants