Lightning-UI-Components
Lightning-UI-Components copied to clipboard
fix(TextBox): update Text patching to allow for proper dimension setting and text centering
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
Test Execution Failed.
Test Execution Failed.
Test Execution Failed.