Skip to content

Commit

Permalink
fix: remove light prop (#1126)
Browse files Browse the repository at this point in the history
* chore: upgrade deps

* fix: remove light prop
  • Loading branch information
vpicone authored May 17, 2021
1 parent 93e67ea commit b5da16b
Show file tree
Hide file tree
Showing 3 changed files with 1,079 additions and 931 deletions.
5 changes: 2 additions & 3 deletions packages/gatsby-theme-carbon/src/components/Tabs/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { breakpoints } from '@carbon/elements';
import cx from 'classnames';

import { useId } from '../../util/hooks/useId';
import styles from './Tabs.module.scss';
import * as styles from './Tabs.module.scss';

function elementIsNullOrString(child) {
return !child || typeof child.type === 'string';
Expand All @@ -31,12 +31,11 @@ const Select = ({ children, _id }) => {
index,
}));
return (
<div style={{ marginLeft: '-1rem', marginRight: '-1rem' }}>
<div className={styles.dropdownWrapper}>
<Dropdown
size="xl"
onChange={({ selectedItem }) => setActiveTab(selectedItem.index)}
initialSelectedItem={items[0]}
light
label="tab selection"
items={items}
id={_id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
}
}

.dropdownWrapper {
margin-left: -1rem;
margin-right: -1rem;
}

.panel {
--space: 0;
color: $text-01;
Expand Down
Loading

1 comment on commit b5da16b

@vercel
Copy link

@vercel vercel bot commented on b5da16b May 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.