Skip to content

Extract decorative arrows in CSS #2063

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tut-tuuut
Copy link
Contributor

@tut-tuuut tut-tuuut commented May 4, 2025

Following PR #2050, we use generated content in CSS for the decorative arrows in the contact form and the fundraising forms.

The last occurrence of → appeared to be in a unused template (something related to the COC), I removed it. Less code, fewer problems. :]

Screenshots in dark and bright mode:

Bright mode the fundraising page looks exactly the same
Dark mode the fundraising page looks exactly the same
  • I noticed more accessibility issues on the fundraising form, which could be fixed like in Use labels instead of placeholders on contact form #2050 but would require a little rework of the CSS. I will work on it in another PR.
  • Still accessibility-related: I added some aria-hidden="true" on decorative <hr> in the fundraising form.

@bmispelon
Copy link
Member

Thanks for this! 💚

I've now merged #2050 and so there's a bunch of conflict in this one. Can you take a look?

{{ form.body.as_field_group }}
</div>
{{ form.captcha }}
<p class="submit">
Copy link
Contributor

Choose a reason for hiding this comment

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

I think changing to button and using content for the arrows make sense to me. Since we are changing it anyways, can we change this to <div> as well? I don't think a <p> tag (as we used to have before this PR) makes a lot of sense semantically here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, good point!

@tut-tuuut tut-tuuut force-pushed the ahr/extract-decorative-arrows-in-css branch from 23a414c to 25a1de2 Compare May 8, 2025 20:48
@tut-tuuut tut-tuuut force-pushed the ahr/extract-decorative-arrows-in-css branch from 25a1de2 to d2a6e77 Compare May 8, 2025 21:05
@tut-tuuut tut-tuuut marked this pull request as ready for review May 8, 2025 21:06
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.

3 participants