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

Feat: add toggle button group #133

Merged
merged 3 commits into from
Oct 17, 2023
Merged

Conversation

tewshi
Copy link
Contributor

@tewshi tewshi commented Oct 15, 2023

No description provided.

@tewshi tewshi requested a review from a team as a code owner October 15, 2023 20:06
@@ -6,22 +6,60 @@ export interface Props {
color?: ContextColorsType;
variant?: 'default' | 'outlined' | 'text';
size?: 'sm' | 'lg';
required?: boolean;
modelValue?: number | number[];
Copy link
Member

Choose a reason for hiding this comment

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

hmm, at least in a few of the use-cases we have we use a custom value in buttons

So we would need to be able to replicate this here too.

https://github.com/rotki/rotki/blob/83cadba74d99679c46c46df9b295c42f5b27fff0/frontend/app/src/components/staking/eth/EthValidatorFilter.vue#L30

Copy link
Contributor Author

Choose a reason for hiding this comment

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

means we need to make it generic, and add value to the button component...

@kelsos
Copy link
Member

kelsos commented Oct 16, 2023

Also on some colors the selected item is a bit harder to distinguish, any change we could make it slightly more obvious?
image

@tewshi tewshi force-pushed the feat-toggle-button-group branch 2 times, most recently from b43634c to 9199892 Compare October 17, 2023 00:26
@codecov-commenter
Copy link

Codecov Report

Merging #133 (9199892) into main (909976a) will increase coverage by 0.11%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
+ Coverage   91.00%   91.12%   +0.11%     
==========================================
  Files          39       39              
  Lines        6763     6849      +86     
  Branches      275      288      +13     
==========================================
+ Hits         6155     6241      +86     
  Misses        608      608              
Files Coverage Δ
...rc/components/buttons/button-group/ButtonGroup.vue 100.00% <100.00%> (ø)
src/components/buttons/button/Button.vue 98.57% <100.00%> (+0.20%) ⬆️
src/components/forms/checkbox/Checkbox.vue 97.29% <100.00%> (ø)
src/components/tables/DataTable.vue 85.65% <100.00%> (+0.07%) ⬆️
src/components/tabs/tab/Tab.vue 100.00% <100.00%> (ø)

@kelsos kelsos force-pushed the feat-toggle-button-group branch from 2d4af46 to 4cbb5f2 Compare October 17, 2023 10:23
Copy link
Member

@kelsos kelsos left a comment

Choose a reason for hiding this comment

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

lgtm

@kelsos kelsos merged commit 4cbb5f2 into rotki:main Oct 17, 2023
4 checks passed
@kelsos kelsos temporarily deployed to github-pages October 17, 2023 10:37 — with GitHub Actions Inactive
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.

3 participants