[SG-29316] refactor: scoped styles for the Button component
Created by: gitstart-sourcegraph
Problem statement
The <button>
component relies on our global styles defined in client/branded/src/global-styles/buttons.scss.
Links
Success criteria
The </button><button>
component relies on the CSS module located in the same folder as the React component.
Implementation details
- Copy relevant styles from ### client/branded/src/global-styles/buttons.scss to
client/wildcard/src/components/Button/Button.moculde.scss
. - Use them in the component logic instead of global classes.
- Use the `` Wildcard component as an example.
Time estimate
- Pull requests with ~450 lines changed should take 3 hours at maximum. Ping the reviewer in the spec pull request if time-consuming changes are required.
- Split the work into multiple pull requests if the total diff is bigger than 450 lines of code.