Lightning-UI-Components icon indicating copy to clipboard operation
Lightning-UI-Components copied to clipboard

fix(TextBox): update Text patching to allow for proper dimension setting and text centering

Open ImCoolNowRight opened this issue 1 year ago • 3 comments

Description

This PR updates how the patch object for the Text tag is created to ensure the tag can get the proper parent dimensions it needs in order to center text.

References

LUI-1324

Testing

In the TextBox story, add textAlign: 'center' to the textStyle. You should see that the text properly centers when you toggle the control for fixed.

Automation

Checklist

  • [ ] all commented code has been removed
  • [ ] any new console issues have been resolved
  • [ ] code linter and formatter has been run
  • [ ] test coverage meets repo requirements
  • [ ] PR name matches the expected semantic-commit syntax

ImCoolNowRight avatar Feb 09 '24 20:02 ImCoolNowRight

Test Execution Failed.

Test Execution Failed.

Test Execution Failed.