-
Notifications
You must be signed in to change notification settings - Fork 0
thank-you-2025 #870
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
thank-you-2025 #870
Conversation
e5575df to
60e7d7c
Compare
9611cdb to
4cfe752
Compare
6548553 to
1b508ed
Compare
dea09a3 to
486d6d0
Compare
cc6591f to
c01ca2b
Compare
f2ca4e2 to
e40d25f
Compare
gbirke
left a comment
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've rebased this to main and fixed the commits the broke stuff.
| const wrapper = getWrapper(); | ||
|
|
||
| await wrapper.find( '.wmde-banner-full-cta-with' ).trigger( 'click' ); | ||
| const ctaFiveEuroAmount = wrapper.find( '.wmde-b-cta > div:first-child button' ); |
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 like this pattern of naming elements by using a variable (not quite a Page Object but in the same spirit), we should use that more as a team, even if it gives us more of the "naming things" hard problem.
| <CloseButton | ||
| class="wmde-u-sticky" | ||
| :thank-you-content="thankYouContent" | ||
| data-with-background |
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 still think putting in data attributes just to create minor variations that are not due to state (i.e. the data attributes dependent on state) is a mis-application of CUBE CSS.
| @@ -0,0 +1,49 @@ | |||
| <template> | |||
| <details class="wmde-b-disclosure wmde-c-flow wmde-b-prose" :id="id" ref="dialogue" @toggle="onDialogueToggle"> | |||
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.
This is a really nice example of progressive enhancement/JS and Vue working together
This adds all the required factories, loaders and interfaces for loading the thank you content dynamically. Ticket: https://phabricator.wikimedia.org/T409802
We need to include the content in the live banners using a mediawiki include snippet. This adds it to the build. Ticket: https://phabricator.wikimedia.org/T409802
Delete all the old content components and styles, and update the test imports. Ticket: https://phabricator.wikimedia.org/T409802
Also moves block colour variables into blocks Ticket: https://phabricator.wikimedia.org/T409802
This adds the new dialog attribute that will close the modal when the backdrop is clicked or the esc key is pressed. This is progressive enhancement and not currently supported in all browsers. Ticket: https://phabricator.wikimedia.org/T409802
- Improve mobile text size on mini banner - Improve gaps in footer links - Add better modal close event handling - Modal background is opaque again - Improved progress bar animation - Removed unused modules - Track when dialogues are opened - Updated tests Ticket: https://phabricator.wikimedia.org/T409802
- the text was wrapping differently for the languages, gave them fixed min widths and additional safety margin
This change hides banners via CSS when printing
We have a new accessible thank you banner with a smashing new design.
Ticket: https://phabricator.wikimedia.org/T408117