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

[ADF-5575] Should use declaration-no-important rule in the stylelint-… #9302

Conversation

jacekpluta
Copy link
Contributor

@jacekpluta jacekpluta commented Feb 5, 2024

…config.json file to avoid use of !imporatnt in ADF

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)
!imporant properies have been removed.
Each of the components was checked in case of any issues and either !Important was unnecessary or specificity had to be increased.

What is the new behaviour?
Behaviour shouldn't change.

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@jacekpluta jacekpluta changed the title [ACS-6565] Should use declaration-no-important rule in the stylelint-… [ACS-6565] Should use declaration-no-important rule in the stylelint-… (1/2 part) Feb 5, 2024
@jacekpluta jacekpluta force-pushed the ADF-5575-should-use-declaration-no-important-rule-in-the-stylelint-config branch from 92c6566 to 802d54a Compare February 5, 2024 11:38
@jacekpluta jacekpluta force-pushed the ADF-5575-should-use-declaration-no-important-rule-in-the-stylelint-config branch from 802d54a to 398d60f Compare February 13, 2024 11:44
@jacekpluta jacekpluta changed the title [ACS-6565] Should use declaration-no-important rule in the stylelint-… (1/2 part) [ACS-6565] Should use declaration-no-important rule in the stylelint-… Feb 13, 2024
@AleksanderSklorz
Copy link
Contributor

@jacekpluta please fix sonarcloud problems:
image

@jacekpluta jacekpluta force-pushed the ADF-5575-should-use-declaration-no-important-rule-in-the-stylelint-config branch from 398d60f to 9b429a5 Compare February 13, 2024 12:35
@AleksanderSklorz
Copy link
Contributor

@jacekpluta please correct PR title - there is incorrect jira number:
image

@jacekpluta jacekpluta changed the title [ACS-6565] Should use declaration-no-important rule in the stylelint-… [ADF-5575] Should use declaration-no-important rule in the stylelint-… Feb 13, 2024
@jacekpluta jacekpluta force-pushed the ADF-5575-should-use-declaration-no-important-rule-in-the-stylelint-config branch from 9b429a5 to 690656f Compare February 15, 2024 09:07
@jacekpluta jacekpluta force-pushed the ADF-5575-should-use-declaration-no-important-rule-in-the-stylelint-config branch 3 times, most recently from c06b09f to 6ce9bcd Compare February 15, 2024 11:24
@jacekpluta jacekpluta force-pushed the ADF-5575-should-use-declaration-no-important-rule-in-the-stylelint-config branch 2 times, most recently from 3176906 to 8399f25 Compare February 15, 2024 15:09
@@ -1,20 +1,20 @@
.adf-filter {
&-button {
margin-left: -7px !important;
&-button#{&}-button {
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've removed all of the classes duplication like '&-button#{&}-button' and '.adf-datatable-header.adf-datatable-header'. I've replacted them with :has, :is or increased nesting.

@DenysVuika
Copy link
Contributor

the style classname duplication looks like even worse hack than !important

@jacekpluta jacekpluta force-pushed the ADF-5575-should-use-declaration-no-important-rule-in-the-stylelint-config branch 3 times, most recently from eb9142b to 916a6eb Compare February 19, 2024 20:45
@jacekpluta jacekpluta force-pushed the ADF-5575-should-use-declaration-no-important-rule-in-the-stylelint-config branch 2 times, most recently from 1a6fa9c to 5ef3875 Compare March 8, 2024 13:49
@jacekpluta jacekpluta force-pushed the ADF-5575-should-use-declaration-no-important-rule-in-the-stylelint-config branch 7 times, most recently from 44bb270 to 9fd71f5 Compare March 11, 2024 11:20
…config.json file to avoid use of !important in ADF
@jacekpluta jacekpluta force-pushed the ADF-5575-should-use-declaration-no-important-rule-in-the-stylelint-config branch from 9fd71f5 to 75acf55 Compare March 11, 2024 12:05
Copy link

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

@jacekpluta jacekpluta merged commit e9dc55b into develop Mar 11, 2024
33 checks passed
@jacekpluta jacekpluta deleted the ADF-5575-should-use-declaration-no-important-rule-in-the-stylelint-config branch March 11, 2024 14:33
AleksanderSklorz pushed a commit that referenced this pull request Mar 27, 2024
…config.json file to avoid use of !important in ADF (#9302)
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.

6 participants