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

change: [M3-8442] - Remove Double border on "Billing & Payment History" table with dark theme. #11111

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

hasyed-akamai
Copy link
Contributor

Description 📝

Border for "Billing & Payment History" table was not properly styled for Cloud Manager's dark theme, resulting in double border for the table.

Changes 🔄

  • based on the theme we have changed the border size.

Target release date 🗓️

Preview 📷

Before After
Before After

How to test 🧪

Prerequisites

  • Log into accounts which is having any "Billing & Payment History" table entry:

Reproduction steps

  • Landing:
    • Observe the border of "Billing & Payment History" table is reduced.

Verification steps

  • After changes, observe "Billing & Payment History" table border gets half.

As an Author I have considered 🤔

Check all that apply

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@pmakode-akamai pmakode-akamai added the Design Tokens Laying the groundwork for Design Tokens label Oct 17, 2024
@hasyed-akamai hasyed-akamai marked this pull request as ready for review October 17, 2024 10:17
@hasyed-akamai hasyed-akamai requested a review from a team as a code owner October 17, 2024 10:17
@hasyed-akamai hasyed-akamai requested review from cpathipa, hkhalil-akamai, pmakode-akamai, a team, carrillo-erik and jaalah-akamai and removed request for a team October 17, 2024 10:17
? `1px solid ${theme.borderColors.divider}`
: 0,
})}
>
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this solves the root problem, it just overrides it. I would undo this change and I'll point out what should change.

@jaalah-akamai
Copy link
Contributor

Since we're wrapping this entire section in a paper which has a border, we should be able to pass sx={{ border: 0 }} to this Table on L441.
https://github.com/linode/manager/blob/develop/packages/manager/src/features/Billing/BillingPanels/BillingActivityPanel/BillingActivityPanel.tsx#L441

The other issue on on L479 where that style is no longer relevant and can be removed.
https://github.com/linode/manager/blob/develop/packages/manager/src/features/Billing/BillingPanels/BillingActivityPanel/BillingActivityPanel.tsx#L479

Let me know if that fixes all the issues

Copy link
Contributor

@cpathipa cpathipa left a comment

Choose a reason for hiding this comment

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

Agreed with Jaalah's feedback.

@hasyed-akamai
Copy link
Contributor Author

Since we're wrapping this entire section in a paper which has a border, we should be able to pass sx={{ border: 0 }} to this Table on L441. https://github.com/linode/manager/blob/develop/packages/manager/src/features/Billing/BillingPanels/BillingActivityPanel/BillingActivityPanel.tsx#L441

The other issue on on L479 where that style is no longer relevant and can be removed. https://github.com/linode/manager/blob/develop/packages/manager/src/features/Billing/BillingPanels/BillingActivityPanel/BillingActivityPanel.tsx#L479

Let me know if that fixes all the issues

UpperBorder
The Above Extra Border is removed by removing the L479 where that style is no longer relevant
https://github.com/linode/manager/blob/develop/packages/manager/src/features/Billing/BillingPanels/BillingActivityPanel/BillingActivityPanel.tsx#L479

SideBorder
The Extra Side Border is Removed by using the extra syntax of sx={{border:0}} in table section
https://github.com/linode/manager/blob/develop/packages/manager/src/features/Billing/BillingPanels/BillingActivityPanel/BillingActivityPanel.tsx#L441

LowerBorder
The lower Extra Border is able to remove by removing the borderBottom from the table cell component
https://github.com/linode/manager/blob/develop/packages/manager/src/components/TableCell/TableCell.tsx#L34

After Following all the above results are as expected :
Result

but @jaalah-akamaiCould you please let me know if changes to the global component might cause any regression issues ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design Tokens Laying the groundwork for Design Tokens Ready for Review Requires Changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants