Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcomposite-checkout: Rename "UI" elements in public API and document them in README #45680
Comments
|
We may actually want to remove the |


An unreviewed change to the
automattic/composite-checkoutnpm package addedMainContentUI,CheckoutStepAreaUI, andSubmitButtonWrapperUIto the package's public API.Those are all CSS-in-JS styled components that were previously implementation details of the package. It totally makes sense to expose them to consumers of the package, but they should be renamed to be more clear (the "UI" suffix is an internal pattern to differentiate styled components from functional components but that implication isn't clear from the outside) and documented in the README.