Skip to content

Conversation

@rehmansheikh222
Copy link

The styling for Alert component with success variant was being picked from _learning.scss file which was disturbing other mfes styling like in authn mfe forgot password page. This PR makes the alert styling explicit to only learning mfe so it won't effect any other mfes as we have separate scss files for each mfe.

Comment on lines 75 to 76
.row.w-100.mx-0.mb-4.border.border-light > .col-12 .alert.alert-success,
.streak-modal .alert.alert-success {

Choose a reason for hiding this comment

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

That is a bit too specific and can easily break with a small change upstream.

Copy link
Author

Choose a reason for hiding this comment

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

Yes, that's true. I will try to find a way where we can target the specific mfe (learning in this case).

Copy link
Author

Choose a reason for hiding this comment

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

Apparently, there is no way to identify a specific mfe. In my current implementation, I think for streak-modal, there is a very little or no chance that it will be changes in the future. But, for course celebration, I had to do this way as there was no better option I could find. I've also discussed this with @arbirali bhai and he thinks the same.
@DawoudSheraz

Choose a reason for hiding this comment

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

@HammadYousaf01 thoughts?

Copy link
Author

Choose a reason for hiding this comment

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

@DawoudSheraz here is the relevant code snippet for Alert component used in CourseCelebration,
https://github.com/openedx/frontend-app-learning/blob/master/src/courseware/course/course-exit/CourseCelebration.jsx#L316

There is no generic parent class I could find that could make it a bit less specific. Your thoughts?

@rehmansheikh222 rehmansheikh222 changed the base branch from teak/indigo to sumac/indigo June 24, 2025 09:12
@DawoudSheraz DawoudSheraz merged commit 21e1efb into sumac/indigo Jun 25, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In review to Done in Tutor project management Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants