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

Billing UI feature update #72

Merged
merged 4 commits into from
Jan 6, 2021
Merged

Billing UI feature update #72

merged 4 commits into from
Jan 6, 2021

Conversation

pez-work
Copy link
Contributor

@pez-work pez-work commented Dec 18, 2020

pairs with: https://github.com/WealthBar/wealthbar/pull/1925 and WealthBar/peak-design-system#76

  • data-table table class
  • data-list definition list class
  • update tabs with improved mobile layout
  • add select to input patterns
  • predefined input length classes
  • emoji class for better alignment

Summary

Submitter Checklist:

  • Demo new or changed functionality to stakeholders
  • Perform self-review (see reviewer checklist)
  • Annotate MR with comments for reviewer
  • Document any new patterns or features on peak-design-system
  • Assign a team member who should specifically review this code
  • Address reviewer feedback, if any, and assign back to reviewer

Reviewer Checklist:

  • Version bump in package.json
  • Visually review significant UI changes
  • Assign @pez-wb as reviewer if needed
  • Assign back to submitter with feedback

- data-table table class
- data-list definition list class
- update tabs with improved mobile layout
- add select to input patterns
- predefined input length classes
- emoji class for better alignment
@@ -61,3 +61,66 @@ table.card {
}
}
}

// Billing UI data-table
Copy link
Contributor

Choose a reason for hiding this comment

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

Can these styles not be used anywhee? Labelling them for a specific page seems at odds with the objective of reusable styles.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are used throughout the billing pages (The entire app) so in that sense they are reused style.

Copy link
Contributor

@travis-wb travis-wb Dec 30, 2020

Choose a reason for hiding this comment

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

But are they reusable outside of the billing app? If so this comment is falsely restrictive.

@@ -109,6 +109,7 @@ del, .neg {
.center { text-align: center; }
.right { text-align: right; }
.monospace { font-family: $mono-stack; }
.emoji { vertical-align: middle; }
Copy link
Contributor

Choose a reason for hiding this comment

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

One of the takeaways from k82 was that we shouldn't use emojies. But I guess there's no value ina dding that note here, since devs wouldn't see it while consuming the styles anyway. 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

¯\_(ツ)_/¯ they are used in billing for currency – I agree in principle but this at least would ensure alignment w/ text.

max-width: 100%;
overflow-x: auto;
overflow-y: hidden;
@media #{$screen-width-medium} { overflow: visible; }
Copy link
Contributor

@travis-wb travis-wb Dec 21, 2020

Choose a reason for hiding this comment

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

Running the Peak site locally, I can't see any behavioural difference here..
-edit-
Okay, when I run WB billing I can see the overlfow working. Peak demo site will need an update on the tabs page to actually show this functionality.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, I have a WIP PDS branch that covers this change and will show the data-table and data-list.

overflow-x: auto;
th, td {
background-clip: padding-box;
border: 1px solid $neutral-700;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is quite a chunky line. 500 would be better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just based on whe was currently implemented in cliff's Billing UI.

dl.data-list {
margin-bottom: 1rem;
> div {
border: 1px solid $neutral-700;
Copy link
Contributor

Choose a reason for hiding this comment

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

500 is also better here. Even 300 works great here, but 300 might be too light for the other one.

@pez-work pez-work merged commit 71f2ba4 into master Jan 6, 2021
@pez-work pez-work deleted the fix.billing-ui branch January 6, 2021 17:06
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