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

UI: Extract SecondaryButton component and standardize usage #410

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

ksharma-xyz
Copy link
Owner

@ksharma-xyz ksharma-xyz commented Dec 2, 2024

TL;DR

Created a reusable SecondaryButton component and implemented it across date/time selector screens.

What changed?

  • Created a new SecondaryButton composable that encapsulates common button styling and behavior
  • Replaced custom button implementations in DateTimeSelectorScreen and TimeTableScreen with the new SecondaryButton component
  • The button maintains consistent styling with rounded corners, background color, and padding across all implementations

Screenshots

Screen.Recording.2024-12-02.at.4.21.22.pm.mov

Why make this change?

Reduces code duplication and ensures consistent button styling across the trip planner interface. This change improves maintainability by centralizing button styling logic and makes it easier to update the design system in the future.

@ksharma-xyz ksharma-xyz changed the title UI: Create SecondaryButton component UI: Extract SecondaryButton component and standardize usage Dec 2, 2024
@ksharma-xyz ksharma-xyz marked this pull request as ready for review December 2, 2024 05:13
@ksharma-xyz ksharma-xyz force-pushed the 12-02-add_enabled___disabled_property_to_radiobutton branch from 341f6d7 to 21bb29c Compare December 2, 2024 05:23
@ksharma-xyz ksharma-xyz force-pushed the 12-02-ui_create_secondarybutton_component branch from a33ce20 to 2b15dc9 Compare December 2, 2024 05:23
@ksharma-xyz ksharma-xyz added this to the Release v1.0 iOS + Android milestone Dec 2, 2024
@ksharma-xyz ksharma-xyz force-pushed the 12-02-add_enabled___disabled_property_to_radiobutton branch 2 times, most recently from f8124e3 to 3044cbb Compare December 2, 2024 05:32
@ksharma-xyz ksharma-xyz force-pushed the 12-02-ui_create_secondarybutton_component branch from 2b15dc9 to 876cd18 Compare December 2, 2024 05:32
@ksharma-xyz ksharma-xyz changed the base branch from 12-02-add_enabled___disabled_property_to_radiobutton to graphite-base/410 December 2, 2024 05:42
@ksharma-xyz ksharma-xyz force-pushed the 12-02-ui_create_secondarybutton_component branch from 876cd18 to b666026 Compare December 2, 2024 05:44
@ksharma-xyz ksharma-xyz changed the base branch from graphite-base/410 to main December 2, 2024 05:44
@ksharma-xyz ksharma-xyz force-pushed the 12-02-ui_create_secondarybutton_component branch from b666026 to 6a0c4a4 Compare December 2, 2024 05:44
@ksharma-xyz ksharma-xyz merged commit 6a4968d into main Dec 2, 2024
2 checks passed
Copy link
Owner Author

Merge activity

  • Dec 2, 12:53 AM EST: A user merged this pull request with Graphite.

@ksharma-xyz ksharma-xyz deleted the 12-02-ui_create_secondarybutton_component branch December 2, 2024 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant