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

Remove app-b prefixes from all components #4539

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Conversation

matthillco
Copy link
Contributor

@matthillco matthillco commented Dec 17, 2024

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

Remove the app-b- prefix from all components.

Why

This class naming convention was introduced early in the project as a way of namespacing blocks, but it serves no purpose and we haven’t consistently applied it to blocks, so it should be removed.
Trello

@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4539 December 17, 2024 12:39 Inactive
@matthillco matthillco force-pushed the remove-app-b-class-names branch from 7246683 to c4344e1 Compare December 17, 2024 12:52
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4539 December 17, 2024 12:53 Inactive
@matthillco matthillco force-pushed the remove-app-b-class-names branch from c4344e1 to 5c3392e Compare December 17, 2024 12:57
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4539 December 17, 2024 12:58 Inactive
@matthillco matthillco force-pushed the remove-app-b-class-names branch from 5c3392e to dc64073 Compare December 17, 2024 13:02
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4539 December 17, 2024 13:02 Inactive
@matthillco matthillco marked this pull request as ready for review December 17, 2024 13:05
@matthillco matthillco added github_actions Pull requests that update GitHub Actions code and removed github_actions Pull requests that update GitHub Actions code labels Dec 17, 2024
@@ -5,32 +5,32 @@ describe('Main Menu Block module', function () {

beforeEach(function () {
var DOM =
`<div class="app-b-main-nav" data-module="app-b-main-nav">
Copy link
Contributor

Choose a reason for hiding this comment

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

Changes look fine, but the commit structure could be better - individually, each of these commits currently represents a breaking change. In future if the change warrants multiple commits I'd go block by block, but for simplicity now I'd suggest merging all the commits together.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, yeah these commits reflect my process to ensure I didn't miss anything. I've squashed them all into one commit now.

@matthillco matthillco force-pushed the remove-app-b-class-names branch from dc64073 to 393e806 Compare December 19, 2024 09:58
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4539 December 19, 2024 09:58 Inactive
@matthillco matthillco merged commit 0dc2a2a into main Dec 19, 2024
12 checks passed
@matthillco matthillco deleted the remove-app-b-class-names branch December 19, 2024 11:45
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