openedx / openedx/paragon

[Paragon 23] CSS build files remove duplicated properties cousing errors in modal container min-height

Open
#3,511 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
140
Forks
100
Avg merge
1h 3m
Merged PRs (30d)
30

Description

The modal styles has 2 min-height properties to make it browser compatible

https://github.com/openedx/paragon/blob/8abee8f59f1ac1330ebcef05355017c7e86e969e/src/Modal/index.scss#L33-L34

But after compiling the css files this one only has the second value as you can see if you search for the class here

Image

This is caused for postcss-combine-duplicated-selectors configuration

https://github.com/openedx/paragon/blob/8abee8f59f1ac1330ebcef05355017c7e86e969e/lib/build-scss.js#L103

At the moment I see this affects the modal container styles but not sure if others styles too.

Possible solution
  1. Use removeDuplicatedValues instead, in this way the plugin only marge the values when are equal.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/Modal/index.scss and the postcss-combine-duplicated-selectors configuration in lib/build-scss.js. Build the CSS and compare the modal container output in dist/core.css, then inspect whether other duplicated properties are affected. Done means compatible min-height declarations are preserved without incorrectly merging differing values.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, scss
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.