-
Notifications
You must be signed in to change notification settings - Fork 18
IBX-10555: Added blurred loader for modal #1757
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
Conversation
9a9e304 to
ac95ed9
Compare
bc2866a to
b2f4d20
Compare
| }; | ||
|
|
||
| export { controlZIndex, controlManyZIndexes }; | ||
| const showModalLoader = ({ headerText, descriptionText, modalNode }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
personally I would put modalNode as its own method argument, as it's THE element which is mandatory for it to even work?
Same with hideModalLoader (there it would be even more useful, as there would be no need to pass object just to pass one argument
| &__loader-header-text { | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| &__loader-header-text { | |
| } |
| &__loader-header-text { | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| &__loader-header-text { | |
| } |
| modalNode.classList.remove('ibexa-modal--with-blurred-loader'); | ||
| }; | ||
|
|
||
| document.body.addEventListener('hidden.bs.modal', (event) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Own concern.
Seems like this might affect ALL modals on the page - is that intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is intentional, but it should have checked if the modal was blurred and unsage of helper should be in different place, not in helper itself because we can have helper imported multiple time on the page which can cause some errors.
| modalNode.classList.remove('ibexa-modal--with-blurred-loader'); | ||
| }; | ||
|
|
||
| document.body.addEventListener('hidden.bs.modal', (event) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is intentional, but it should have checked if the modal was blurred and unsage of helper should be in different place, not in helper itself because we can have helper imported multiple time on the page which can cause some errors.
b930c36 to
4476813
Compare
|
The text in the second line should be divided into two lines, following the design |
70844c8 to
88df1bf
Compare
|
|
QA Approved on Ibexa DXP Commerce 4.6-dev. |



Description:
Figma: https://www.figma.com/design/kUj5EQzhDotuXIbbhcvRPA/-Content--Share-link-of-content-%E2%80%A8--collaborative-editing?node-id=10035-188564&t=K37yRrSfAFkGFOTB-0
Screenshot with changes:

For QA:
Documentation: