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

[ACA-4712] changes required to disallow using important for styles in aca #8785

Conversation

AleksanderSklorz
Copy link
Contributor

@AleksanderSklorz AleksanderSklorz commented Jul 25, 2023

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)
https://alfresco.atlassian.net/browse/ACA-4712

What is the new behaviour?
Changes required to remove usages of !important from ACA.

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:
ACA PR: Alfresco/alfresco-content-app#3368

@sonarcloud
Copy link

sonarcloud bot commented Jul 25, 2023

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

@@ -31,7 +31,7 @@
[style.display]="isExpiryDateToggleChecked ? 'block' : 'none'"
data-automation-id="adf-slide-toggle-checked"
class="adf-share-link__date-time-container">
<mat-form-field class="adf-full-width adf-float-label" floatLabel='always'>
<mat-form-field class="adf-full-width adf-float-label" floatLabel='never'>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For anyone who will be looking at that PR in the future. I changed it because of strange workaround applied in that file and removed:

https://github.com/Alfresco/alfresco-content-app/pull/3368/files#diff-13b18163e00bbf172ccac6d5bb175406262493bd5d3f7cabb7be2b5f557d494b

Somebody was hiding labels using css styles instead of mat form API. So then they were not visible in that modal:
image

@AleksanderSklorz AleksanderSklorz merged commit fee60cd into develop Jul 25, 2023
35 checks passed
@AleksanderSklorz AleksanderSklorz deleted the ACA-4712-Changes-required-to-disallow-using-important-for-styles-in-aca branch July 25, 2023 21:02
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.

2 participants