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

Add shared helper and component wrapper helper to govspeak component #4325

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

andysellick
Copy link
Contributor

What

Adds the shared_helper and component wrapper helper to the govspeak component.

Involves renaming a few classes to allow them to be passed to the component wrapper, specifically the disable youtube (adding a JS prefix) and direction-rtl (add a gem-c-govspeak prefix) otherwise the wrapper raises an error.

Why

Mainly so we can pass a margin option to the component, but also because the component wrapper works well here.

Visual Changes

Shouldn't be any visual changes, but the component guide has a few new options listed, so this will cause a Percy fail.

Trello card: https://trello.com/c/YAeRSLr4/91-blocks-need-more-spacing

- to govspeak
- mainly to be able to pass a margin option to the component, but also because the component wrapper works well here
- involves renaming a few classes to allow them to be passed to the component wrapper, specifically the disable youtube (adding a JS prefix) and direction-rtl (add a gem-c-govspeak prefix) otherwise the wrapper raises an error
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4325 October 21, 2024 14:49 Inactive
@andysellick andysellick merged commit 8ee0658 into main Oct 21, 2024
12 checks passed
@andysellick andysellick deleted the add-helpers-to-govspeak branch October 21, 2024 15:31
andysellick added a commit that referenced this pull request Oct 22, 2024
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