Skip to content

Bugfix: don't have text aligned left in buttons in button group#1451

Merged
colinrotherham merged 3 commits into
mainfrom
dont-align-buttons-left-in-button-group
Jul 2, 2025
Merged

Bugfix: don't have text aligned left in buttons in button group#1451
colinrotherham merged 3 commits into
mainfrom
dont-align-buttons-left-in-button-group

Conversation

@frankieroberto
Copy link
Copy Markdown
Contributor

This only effects buttons where you've set a minimum width (eg because the text is quite short).

Fixes an accidental change in #1309.

Checklist

This only effects buttons where you've set a minimum width (eg because the text is quite short).
Copy link
Copy Markdown
Contributor

@anandamaryon1 anandamaryon1 left a comment

Choose a reason for hiding this comment

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

Good spot, thanks.

Looks good to me but still having issues with backstop :/

@colinrotherham
Copy link
Copy Markdown
Contributor

colinrotherham commented Jun 30, 2025

@anandamaryon1 @frankieroberto Looks like we get a new backstop issue each week

This time it's multiple concurrent test .click() events that blur :focus set in another

I've fixed it in #1447

Copy link
Copy Markdown
Contributor

@colinrotherham colinrotherham left a comment

Choose a reason for hiding this comment

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

But don't we want to keep text-align: left for paragraph text?

With this PR, if you add a min-width to a paragraph it's now centre-aligned

@colinrotherham colinrotherham temporarily deployed to nhsuk-frontend-pr-1451 June 30, 2025 17:09 Inactive
@colinrotherham
Copy link
Copy Markdown
Contributor

Could you take a look now?

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@colinrotherham colinrotherham left a comment

Choose a reason for hiding this comment

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

@frankieroberto @anandamaryon1 Happy if we merge this?

@colinrotherham colinrotherham merged commit 07ed44b into main Jul 2, 2025
23 of 24 checks passed
@colinrotherham colinrotherham deleted the dont-align-buttons-left-in-button-group branch July 2, 2025 08:32
colinrotherham added a commit that referenced this pull request Jul 22, 2025
…-group

Bugfix: don't have text aligned left in buttons in button group
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