Fix the`max-nesting-depth` style-lint errors and warnings for `app/assets/stylesheets/pages/notes.scss`
Problem
Fix the following style-lint errors and warnings for app/assets/stylesheets/pages/notes.scss
217:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
255:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
259:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
292:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
318:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
325:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
329:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
334:11 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
338:11 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
342:11 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
475:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
478:11 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
483:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
487:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
795:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
876:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
880:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
888:9 ⚠ Expected nesting depth to be no more than 3 max-nesting-depth
What to do
- If possible, replace the CSS class with a utility one, check common.scss and https://getbootstrap.com/docs/4.3/utilities/ for existing ones
- Double check if all the warning have been fixed by running
yarn run stylelint-file
app/assets/stylesheets/pages/notes.scss` - In the MR, add screenshots of the affected areas before and after the changes, check the first MR as a guideline
- If there are a lot of changes, we recommend to break them into smaller MRs
- Double check the usage of each changed class both in CE and EE
- EE changes should either be backported into CE or moved into
ee/
folder. You can read more about how to handle EE code here - Label the MR with CSS cleanup
Edited by Denys Mishunov