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

When adding custom close button. Default one stay usable #9218

Merged
merged 7 commits into from
Dec 8, 2021

Conversation

crochefort
Copy link
Contributor

@crochefort crochefort commented Nov 10, 2021

When we add a custom close button, it show 2 close buttons

What does this pull request (PR) do? / Que fait cette demande « pull » (PR)?

Fix only class overlay-close is needed for overlay not lightbox

  • [x ] Create/update documentation /// Créer/mettre à jour la documentation
  • [x ] Build and test PR's code /// Rouler le script de compilation et tester le code de la PR
  • Validate changes against WCAG for accessibility /// Valider les changements avec WCAG pour l'accessibilité
  • Ensure documentation is bilingual /// S'assurer que la documentation soit bilingue

Screenshots / Captures d'écrans
image

@duboisp

When we add a custom close button, it show 2 close buttons
Copy link
Member

@duboisp duboisp left a comment

Choose a reason for hiding this comment

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

@crochefort
Copy link
Contributor Author

@duboisp No need to edit the documentation since it was OK in the doc.

@duboisp
Copy link
Member

duboisp commented Nov 17, 2021

@crochefort Can you update the following line in the working example page:
For: https://github.com/wet-boew/wet-boew/blob/master/src/plugins/overlay/overlay-en.hbs#L230
Currently

<button class="btn btn-primary popup-modal-dismiss" type="button">Close overlay/modal</button>

Need to be updated like:

<button class="btn btn-primary overlay-close" type="button">Close overlay/modal</button>

Change is to replace "popup-modal-dismiss" with "overlay-close".
Similar change is also required for the French working example

Change is to replace "popup-modal-dismiss" with "overlay-close".
Change is to replace "popup-modal-dismiss" with "overlay-close".
@crochefort
Copy link
Contributor Author

@duboisp Should be ok I think!

src/plugins/overlay/overlay.js Outdated Show resolved Hide resolved
Co-authored-by: Pierre Dubois <duboisp2@gmail.com>
@duboisp duboisp merged commit 128ef32 into wet-boew:master Dec 8, 2021
@crochefort crochefort deleted the patch-1 branch December 9, 2021 19:22
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.

None yet

2 participants