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

Replace editor bullet point button with hint text #6845

Merged
merged 1 commit into from May 13, 2024

Conversation

scruti
Copy link
Collaborator

@scruti scruti commented May 8, 2024

Trello card URL

Changes in this PR:

The text editor "toggle bullet point" button was highlighted as an accessibility issue in our recent accessibility assessment.

The team decided it was not worth keeping it and we can display a hint text instead.

Screenshots of UI changes:

Before

image

After

image

Copy link

github-actions bot commented May 8, 2024

Review app https://teaching-vacancies-review-pr-6845.test.teacherservices.cloud was successfully deleted

@scruti scruti force-pushed the replace-editor-bulletpoint-button-with-hint-text branch from 14eb790 to 735eee1 Compare May 8, 2024 15:26
The text editor "toggle bulletpoint" button was highlighted as an
accessibility issue in our recent accessibility assessment.

The team decided that is not worth to keep it and we can just display a
hint text instead.
@scruti scruti force-pushed the replace-editor-bulletpoint-button-with-hint-text branch from 735eee1 to 75247a8 Compare May 10, 2024 15:12
.govuk-hint id="#{@field_name}-hint"
= @hint
.govuk-hint id="#{@field_name}-hint"
= @hint.presence || "You can copy and paste any information and keep bullet point formatting."
.editor-component__toolbar data-editor-target="toolbar"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removing this line breaks the input behaviour. So I ended up leaving it while removing the toolbar button only.

@scruti scruti merged commit e3275c7 into main May 13, 2024
14 checks passed
@scruti scruti deleted the replace-editor-bulletpoint-button-with-hint-text branch May 13, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants