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

style: Map + label tab style update #3616

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

ianjon3s
Copy link
Contributor

@ianjon3s ianjon3s commented Sep 3, 2024

What does this PR do?

Adds a basic level of styling to the MUI tabs on Map + Label to bring them in line with PlanX components.

A notable change is moving the error indicator to the left-side of the tab, this prevents conflict with the active tab marker, is consistent with our other usage of error marking, and prevents having to extend the error border to protrude past the overhang.

On that note I spent an unreasonable amount of time trying to figure our why MUI tabs use this overhang, any attempt to rectify it, breaks the scrollbar/flex system.

Before:
image

After:
image

Copy link

github-actions bot commented Sep 3, 2024

Removed vultr server and associated DNS entries

@ianjon3s ianjon3s force-pushed the ian/map-label-tab-styles branch from d3d59ba to bf0b577 Compare September 3, 2024 15:47
@ianjon3s ianjon3s marked this pull request as ready for review September 3, 2024 15:58
@ianjon3s ianjon3s requested a review from a team September 3, 2024 15:59
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Nice visual improvements, sorry for the MUI wrestle - we hit other strange Tab/TabPanel props too, makes me think it's one of the more neglected components in the lib?

borderRight: `12px solid ${theme.palette.error.main}`,
// Appear over tab indicator
zIndex: 2,
borderLeft: `5px solid ${theme.palette.error.main}`,
Copy link
Member

Choose a reason for hiding this comment

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

Like this on the left 👍

@ianjon3s ianjon3s merged commit 3bfb8b7 into main Sep 3, 2024
12 checks passed
@ianjon3s ianjon3s deleted the ian/map-label-tab-styles branch September 3, 2024 16:57
@ianjon3s
Copy link
Contributor Author

ianjon3s commented Sep 3, 2024

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.

2 participants