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

fix(QTM-645): Nested syntax handling to maintain compatibility with styled components v6 #554

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

MarcosViniciusPC
Copy link
Contributor

@MarcosViniciusPC MarcosViniciusPC commented Apr 3, 2024

Description

https://jirasoftware.catho.com.br/browse/QTM-645

Review guide

  • Unit tests (yarn test:components)
  • Regression
    - first start the storybook for regression tests(and keep it open): yarn test:regression:storybook;
    - then run the regression tests: yarn test:regression
  • Code review
  • Build (on recruiter-experience_talent-selection_app)

How to test the build

Clone quantum repo
In quantum, run:
yarn && yarn build

In recruiter-experience_talent-selection_app, run:

npm install ../quantum/dist
The above command will work if the quantum project is in the same directory as the recruiter-experience_talent-selection_app project. If not, replace '..' with the relative path of the Quantum project

Browsers review

  • Layout review
    • Chrome
    • Safari
    • Mobile

##Explanation of the problem
The problem was caused by the version of styled components used in the application.
Version 6 of styled components changed the way it handles selectors and pseudo-classes. If pseudo-classes are applied to elements without the "&" prefix, the pseudo-classes will be compiled into descendant styles of the desired element and not as the style of the element itself. More details at https://styled-components.com/docs/faqs#nested-syntax-handling.

Copy link

sonarqubecloud bot commented Apr 3, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@rapahaeru rapahaeru left a comment

Choose a reason for hiding this comment

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

Approved, but in the case of the button group, the problem persists...

image

@MarcosViniciusPC
Copy link
Contributor Author

Approved, but in the case of the button group, the problem persists...

image

Right. The task https://jirasoftware.catho.com.br/browse/QTM-406 is still in the backlog so we can assess what the problem was

1 similar comment
@MarcosViniciusPC
Copy link
Contributor Author

Approved, but in the case of the button group, the problem persists...

image

Right. The task https://jirasoftware.catho.com.br/browse/QTM-406 is still in the backlog so we can assess what the problem was

@MarcosViniciusPC MarcosViniciusPC merged commit 6014d08 into master Apr 3, 2024
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the QTM-645 branch April 3, 2024 17:25
Copy link

github-actions bot commented Apr 3, 2024

🎉 This PR is included in version 9.24.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants