[SG-37914] Extract bootstrap style import `buttons`
Created by: gitstart-sourcegraph
Description
Extract / Remove usage of bootstrap's style sheet import on codebase.
Success criteria
- Bootstrap button import is removed from
client/branded/src/global-styles/index.scss - Migrate remaining usage of
btn,btn-*classes to wildcard component.
Implementation Detail
-
Migrate .btn-iconusage to<Button variant="icon"> -
Migrate .btn-linkusage to<ButtonLink />, if it's not a good fit, migrate to<Button variant="link" /> -
Migrate .btn-blockusage to<Button display="block" /> -
Migrate remaining usage of <button ...>on codebase to wildcard<Button />component. -
Remove usage of @import 'bootstrap/scss/buttons' -
Verify there are no UI diff as a result of any of the steps above.
Refs
Test Plan
- Identify migrated usage of bootstrap class.
- Verify that they have no UI diff as a result of migrations carried out in this PR.
- To test
client/web/src/org/members/AddMemberToOrgModal.tsxandclient/web/src/org/members/InviteMemberModal.tsx- open
client/web/src/org/area/routes.tsxand comment outLine 25 - the condition for settings/members - go to
/organizations/sourcegraph/settings/memberson the web app.
- open
- To test
Links
- UserCodeHosts.tsx
- TourTask.tsx in storybook
- HomeTab.tsx
App preview:
Check out the client app preview documentation to learn more.