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

updating toggle icon #35

Merged
merged 2 commits into from
Apr 15, 2024
Merged

Conversation

Hannahbird
Copy link
Contributor

  • changed single sort icon to two separate icons (chevron-up and chevron-down)
  • updated toggleSortOrder to either asc or desc based on button selection
  • added sortButtons to computed properties to calculate state of the sort buttons
  • updated styling in order to change color of the selected sort state

Addresses:

https://krumtest.atlassian.net/browse/APPLAUNCHER-31?atlOrigin=eyJpIjoiMDUwNDBkZmFhNTk2NDA2N2IwOGRmNzc2OGJkY2Y1YzIiLCJwIjoiaiJ9

Sorted by ASC:

image

Sorted by DESC:

image

changed single sort icon to two separate icons (chevron-up and chevron-down)
updated toggleSortOrder to either asc or desc based on button selection
added sortButtons to computed properties to calculate state of the sort buttons
updated styling in order to change color of the selected sort state
@Hannahbird Hannahbird requested a review from Sinjhin April 15, 2024 17:19
Copy link
Member

@Sinjhin Sinjhin left a comment

Choose a reason for hiding this comment

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

See comments and my example here: https://github.com/krumIO/krum-rancher-extensions/pull/36/files

We can simplify this a good bit. Visually looks good though.

- Simplified `toggleSortOrder`
- A-Z or Z-A implemented based on toggle status
Copy link
Member

@Sinjhin Sinjhin left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@Hannahbird Hannahbird merged commit 9e28462 into main Apr 15, 2024
2 checks passed
@Hannahbird Hannahbird deleted the feat/APPLAUNCHER-31__sorting_selection branch April 15, 2024 20:03
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