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

Fix inset-text not supporting html param #951

Merged
merged 4 commits into from
May 21, 2024

Conversation

edwardhorsford
Copy link
Contributor

Description

Fixes #950. I think we expect all Nunjucks arguments to be lowercase - but here is is uppercase.

I think it would be a breaking change to swap it over, so I've added support for params.html in preference whilst still accepting params.HTML. It could potentially be considered cleaning up for a future major version release.

frankieroberto
frankieroberto previously approved these changes May 17, 2024
Copy link
Contributor

@frankieroberto frankieroberto left a comment

Choose a reason for hiding this comment

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

Nice.

As a follow-up, is it worth having a doc somewhere outlining naming conventions for the Nunjucks params (if it doesn't already exist)?

ie use cameCase for multiple words, and lowercase for abbreviations?

@edwardhorsford edwardhorsford merged commit 0e68189 into main May 21, 2024
2 checks passed
@edwardhorsford edwardhorsford deleted the fix-inset-text-argument branch May 21, 2024 09:32
frankieroberto added a commit that referenced this pull request Jun 27, 2024
The inset text component was updated to support a lowercase `html` param in #951
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.

Bug: inset text requires html option to be uppercase
2 participants