Skip to content

Commit

Permalink
refactor(console): fix switch styles (#6132)
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Jul 1, 2024
1 parent 1e0f0bc commit 4727062
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
width: 200px;
}

.oneTapSwitch {
display: flex;
gap: _.unit(6);
align-items: center;
}

.oneTapConfig {
display: flex;
gap: _.unit(2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ function GoogleOneTapCard() {
<FormField title="connector_details.google_one_tap.enable_google_one_tap">
<Switch
description={
<>
<div className={styles.oneTapSwitch}>
<img
className={styles.figure}
src={themeToFigure[theme]}
alt="Google One Tap figure"
/>
{t('enable_google_one_tap_description')}
</>
</div>
}
{...register('rawConfig.oneTap.isEnabled')}
/>
Expand Down
3 changes: 0 additions & 3 deletions packages/console/src/ds-components/Switch/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@
.label {
flex: 1;
font: var(--font-body-2);
display: flex;
gap: _.unit(6);
align-items: center;
}

&.error {
Expand Down

0 comments on commit 4727062

Please sign in to comment.