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

Segmented control: fix indicator box shadow regression #657

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

kendallstrautman
Copy link
Contributor

@kendallstrautman kendallstrautman commented Dec 23, 2024

Description

Fixes regression introduced in #621 where all segmented control indicators (both classic and surface variants) lost their box shadow styles. For disabled controls, there should be no box shadow on the indicator control. The CSS wasn't treating the indicator as a sibling of the item.

Disabled styles

Screenshot 2024-12-23 at 2 58 09 PM

Active styles

Screenshot 2024-12-23 at 2 57 54 PM

Testing steps

Visit the playground, check that both the classic and surface variant has the correct box shadow on the ::before pseudoselecter for active controls.

Relates issues / PRs

Copy link

vercel bot commented Dec 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
themes-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 23, 2024 9:54pm

@chaance chaance merged commit 8b3329f into main Dec 31, 2024
2 checks passed
@chaance chaance changed the title Segmented control: fix use subsequent sibling combinator for indicator box shadow Segmented control: fix indicator box shadow regression Dec 31, 2024
@chaance chaance deleted the fix-shadow-issue-635 branch December 31, 2024 16:30
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