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

Adrienne / Changed styling for Inactive chip and long text is wrapped when overflown #5974

Merged

Conversation

adrienne-deriv
Copy link
Contributor

Changes:

Please include a summary of the change and which issue is fixed below:
Screenshot 2022-07-15 at 2 59 51 PM
Screenshot 2022-07-15 at 2 59 47 PM

When you need to add unit test

  • If this change disrupt current flow
  • If this change is adding new flow

When you need to add integration test

  • If components from external libraries are being used to define the flow, e.g. @deriv/components
  • If it relies on a very specific set of props with no default behavior for the current component.

Test coverage checklist (for reviewer)

  • Ensure utility / function has a test case
  • Ensure all the tests are passing

Type of change

  • Bug fix
  • New feature
  • Update feature
  • Refactor code
  • Translation to code
  • Translation to crowdin
  • Script configuration
  • Improve performance
  • Style only
  • Dependency update
  • Documentation update
  • Release

@vercel
Copy link

vercel bot commented Jul 15, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
deriv-app ✅ Ready (Inspect) Visit Preview Sep 1, 2022 at 3:47AM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Jul 15, 2022

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/5974](https://github.com/binary-com/deriv-app/pull/5974)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-adrienne-deriv-bug-69675-inactive-sta-ce3b87.binary.sx?qa_server=frontend.binaryws.com&app_id=24067
    - **Original**: https://deriv-app-git-fork-adrienne-deriv-bug-69675-inactive-sta-ce3b87.binary.sx
- **App ID**: `24067`

@codecov-commenter
Copy link

codecov-commenter commented Jul 15, 2022

Codecov Report

Merging #5974 (dcf2ba8) into master (0cf328a) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5974      +/-   ##
==========================================
+ Coverage   22.03%   22.05%   +0.01%     
==========================================
  Files        1349     1349              
  Lines       30136    30136              
  Branches     4988     4987       -1     
==========================================
+ Hits         6640     6646       +6     
+ Misses      23135    23129       -6     
  Partials      361      361              
Impacted Files Coverage Δ
packages/p2p/src/components/my-ads/ad-status.jsx 100.00% <ø> (ø)
packages/cashier/src/stores/payment-agent-store.js 98.29% <0.00%> (-0.05%) ⬇️
...ng-password-modal/reset-trading-password-modal.jsx 0.00% <0.00%> (ø)
packages/cashier/src/stores/general-store.js 97.20% <0.00%> (+0.05%) ⬆️
...rc/Components/real-account-signup/helpers/utils.js 100.00% <0.00%> (+40.00%) ⬆️
...t/src/Components/text-container/text-container.jsx 100.00% <0.00%> (+100.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0cf328a...dcf2ba8. Read the comment docs.

border-radius: 1.6rem;
padding: 0.2rem 1.6rem;
width: 8.8rem;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

is it fine to have the mixins here or should we add this to the mixins.scss?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In my opinion, not really since this mixin is only included here for reducing code duplication and is only specific for ad status styling, since both the active and inactive ad status share a lot of the same css properties. If maybe however in the future we have mixins that is reusable like making calculations etc, we could include it in our own mixins.scss file for P2P

@sonarcloud
Copy link

sonarcloud bot commented Aug 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

border-radius: 1.6rem;
background-color: $background-color;
}
align-items: center;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added align-items: center and justify-content: center to center the text for active and inactive ad status

Before

Screenshot 2022-08-01 at 11 28 00 AM
Screenshot 2022-08-01 at 11 36 05 AM

After

Screenshot 2022-08-01 at 11 36 08 AM

Screenshot 2022-08-01 at 11 44 15 AM

Copy link
Contributor

@ameerul-deriv ameerul-deriv left a comment

Choose a reason for hiding this comment

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

LGTM

@farrah-deriv farrah-deriv merged commit 6e8386c into binary-com:master Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants