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

Wsteam1 cta refactor #12097

Draft
wants to merge 8 commits into
base: latest
Choose a base branch
from
Draft

Wsteam1 cta refactor #12097

wants to merge 8 commits into from

Conversation

Isabella-Mitchell
Copy link
Contributor

@Isabella-Mitchell Isabella-Mitchell commented Oct 25, 2024

Resolves JIRA [number]

Overall changes

Possible refactor for #12097

We didn't initially go for this because the styling is fairly different. The existing CTA component uses text-decoration:underline whereas this component uses bottom border.

This is significant because text-decoration:underline ignores SVGs by default but bottom border doesn't. So we have to change the HTML structure so that the SVG doesn't get wrapped in the text element.

There is room for improvement - e.g. if we moved the flex/ centre align styles out of this component and applied these via a className override. And maybe including the chevron here.

Or we could review with UX and see if we can align the A11y behaviours/ styling across the site.

Code changes

  • A bullet point list of key code changes that have been made.

Testing

  1. List the steps used to test this PR.

Helpful Links

Add Links to useful resources related to this PR if applicable.

Coding Standards

Repository use guidelines

@shayneahchoon shayneahchoon self-assigned this Oct 25, 2024
Base automatically changed from WSTEAM1-1349-lite-site-cta to latest October 30, 2024 11:24
@amoore108
Copy link
Contributor

Good to close this now @Isabella-Mitchell ?

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