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

refactor: Universal toggle button #4115

Merged
merged 3 commits into from
Jan 9, 2025
Merged

Conversation

ianjon3s
Copy link
Contributor

@ianjon3s ianjon3s commented Jan 7, 2025

What does this PR do?

  • Simplifies toggle button setup so that styles are defined once in a shared component ToggleIconButton.tsx
  • Adds a custom "strikethrough" icon overlay to remove reliance on active/inactive icon pairings when using toggle buttons

Test:
https://4115.planx.pizza/barnet/find-out-if-you-need-planning-permission

Before change:
image

After change (small visual difference):
image

Copy link

github-actions bot commented Jan 7, 2025

Removed vultr server and associated DNS entries

@ianjon3s ianjon3s changed the title refactor: Universal toggle icon refactor: Universal toggle button Jan 8, 2025
@ianjon3s ianjon3s marked this pull request as ready for review January 8, 2025 09:29
@ianjon3s ianjon3s requested a review from a team January 8, 2025 09:29
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 simplifications here, thanks !

@ianjon3s ianjon3s merged commit 77906d0 into main Jan 9, 2025
12 checks passed
@ianjon3s ianjon3s deleted the ian/universal-toggle-button branch January 9, 2025 15:07
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