Skip to content

Conversation

@Abban
Copy link
Member

@Abban Abban commented Nov 1, 2025

We have a new accessible thank you banner with a smashing new design.

Ticket: https://phabricator.wikimedia.org/T408117

@Abban Abban force-pushed the thank-you-2025 branch 2 times, most recently from e5575df to 60e7d7c Compare November 12, 2025 14:04
@Abban Abban force-pushed the thank-you-2025 branch 2 times, most recently from 9611cdb to 4cfe752 Compare November 19, 2025 11:25
@Abban Abban force-pushed the thank-you-2025 branch 7 times, most recently from 6548553 to 1b508ed Compare December 9, 2025 14:29
@Abban Abban marked this pull request as ready for review December 10, 2025 13:48
@Abban Abban requested a review from a team as a code owner December 10, 2025 13:48
@Abban Abban force-pushed the thank-you-2025 branch 4 times, most recently from dea09a3 to 486d6d0 Compare December 18, 2025 14:08
@gbirke gbirke force-pushed the thank-you-2025 branch 4 times, most recently from f2ca4e2 to e40d25f Compare December 29, 2025 17:35
Copy link
Member

@gbirke gbirke left a 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' );
Copy link
Member

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
Copy link
Member

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">
Copy link
Member

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

@moiikana moiikana requested a review from a team January 16, 2026 09:15
Abban added 6 commits January 21, 2026 08:56
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
Abban and others added 13 commits January 21, 2026 09:00
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
@Abban Abban merged commit ee2b8f1 into main Jan 21, 2026
2 checks passed
@Abban Abban deleted the thank-you-2025 branch January 21, 2026 08:58
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.

5 participants