Skip to content

Commit 31ba327

Browse files
utsav2727Utsav Patel
andauthored
fix(dashbordeditorheader): fix switcher icon buttons in dashboardeditorheader (#4034) (#4036)
* fix(dashbordeditorheader): update contentswitcher iconbuttons * fix(dashboardeditorheader): update contentswitcher icon buttons --------- Co-authored-by: Utsav Patel <[email protected]>
1 parent fc9e74b commit 31ba327

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/react/src/components/DashboardEditor/DashboardEditorHeader/DashboardEditorHeader.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ import {
99
Laptop,
1010
Screen,
1111
} from '@carbon/react/icons';
12-
import { FileUploaderButton, ContentSwitcher, TextInput, Tooltip } from '@carbon/react';
12+
import { FileUploaderButton, ContentSwitcher, TextInput, Tooltip, IconSwitch } from '@carbon/react';
1313
import { isEmpty } from 'lodash-es';
1414

1515
import { settings } from '../../../constants/Settings';
1616
import Button from '../../Button';
1717
import PageTitleBar from '../../PageTitleBar';
18-
import IconSwitch from '../../IconSwitch/IconSwitch';
1918

2019
const { iotPrefix } = settings;
2120

packages/react/src/components/PageTitleBar/_page-title-bar.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@
6767
padding-left: $spacing-07;
6868
}
6969

70+
.#{$prefix}--content-switcher-btn,
71+
.#{$prefix}--content-switcher .#{$prefix}--btn--primary {
72+
margin-left: 0;
73+
}
74+
7075
.#{$prefix}--btn--primary {
7176
margin-left: $spacing-03;
7277
[dir='rtl'] & {

0 commit comments

Comments
 (0)