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(components/tabs): tokenize tabs styling #2850

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Blackbaud-ErikaMcVey
Copy link
Contributor

No description provided.

@Blackbaud-ErikaMcVey Blackbaud-ErikaMcVey added the risk level (author): 3 This change has a moderate chance of introducing a bug label Oct 21, 2024
Copy link

nx-cloud bot commented Oct 21, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit c4b05ad. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

--sky-override-tab-button-radius: 0;
--sky-override-tab-line-height: 1.8;
}

.sky-dropdown-button-type-tab {
@include mixins.sky-btn-tab();

Choose a reason for hiding this comment

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

Should we just move the contents of these mixins here? This is the last places these mixins are used.

Choose a reason for hiding this comment

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

We could also then eliminate the import all together in this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can move those if we'd like--these are the default styles though. Did you want to change those?

Choose a reason for hiding this comment

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

I don't necessarily want to change them - but we talked about removing the mixins. And moving the styles from the mixin here would help prepare us for that.

.sky-tabset {
border-bottom: 1px solid $sky-theme-modern-border-color-neutral-medium;
overflow: visible; /* for drop shadow visibility on focused tabs */

Choose a reason for hiding this comment

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

It looks like we already have an overflow specification for sky-tabset in the default styles - could we use an override of some sort to move this last style and eliminate the modern section all together?

@@ -148,6 +148,7 @@ a.sky-btn {
font-weight: 400;
color: var(--sky-text-color-default);
line-height: 1.6em;
--sky-override-tab-line-height: 1.6em !important;

Choose a reason for hiding this comment

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

Sorry if I'm missing something - why are we doing this here instead of in a default override in a component somewhere? We are doing the modern version in the component.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The tabs have a different line height in gemini vs modern and in tabs vs wizard, so modern always has an override. This was the bare minimum to keep modern wizard buttons working before we tokenize them in their own story. I think specificity changed when removing the styles from the mixin, because this no longer takes effect over the line height set for regular tabs without the !important. I can find a cleaner approach if you'd like.

Choose a reason for hiding this comment

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

It just felt odd to have an override variable just hanging out here outside of an override section. I'd like to clean that up if possible - but I won't die on that hill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
risk level (author): 3 This change has a moderate chance of introducing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants