Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[terra-button] Focus Glow getting cut off when used inside clinical header and table #4040

Merged
merged 29 commits into from
Feb 27, 2024

Conversation

MadanKumarGovindaswamy
Copy link
Contributor

@MadanKumarGovindaswamy MadanKumarGovindaswamy commented Feb 22, 2024

Summary

What was changed:
Changed the default margin value of button.

Why it was changed:

The blue focus glow gets cut off when the utility button is used inside the clinical header with the orion-fusion theme.
Even in terra-table if the cell has button content the focus glow gets cut off when focused.
image

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-10195


Thank you for contributing to Terra.
@cerner/terra

@MadanKumarGovindaswamy MadanKumarGovindaswamy changed the title [terra-button] Focus Glow getting cut off when used inside clinical header [terra-button] Focus Glow getting cut off when used inside clinical header and table Feb 22, 2024
@@ -39,7 +39,7 @@
font-size: var(--terra-button-font-size, 1rem);
justify-content: center;
line-height: var(--terra-button-line-height, 1.429);
margin: 0; /* Reset margin for Safari. Safari defaults to 2px. */
margin: 2px; /* Reset margin for Safari. Safari defaults to 2px. */
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment can be removed. Since we are no longer setting the margin to 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.
9eda7ee
Thanks

@github-actions github-actions bot temporarily deployed to preview-pr-4040 February 23, 2024 12:29 Destroyed
@MadanKumarGovindaswamy MadanKumarGovindaswamy marked this pull request as ready for review February 23, 2024 13:44
@MadanKumarGovindaswamy MadanKumarGovindaswamy requested a review from a team as a code owner February 23, 2024 13:44
@saket2403 saket2403 merged commit bbc1d5c into main Feb 27, 2024
22 checks passed
@saket2403 saket2403 deleted the UXPLATFORM-10195-FocusGlowIssueonButton branch February 27, 2024 08:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants