Skip to content

Commit

Permalink
feat(dashboardeditor): use isSelected card prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Stone committed Nov 5, 2020
1 parent c74fa7e commit 8fad77c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/DashboardEditor/DashboardEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,8 @@ const DashboardEditor = ({
tabIndex: 0,
onKeyDown: (e) => handleKeyDown(e, onSelectCard, cardConfig.id),
onClick: () => handleOnClick(onSelectCard, cardConfig.id),
className: classnames(`${baseClassName}--preview__card`, {
// add black border when selected
// TODO: swap this to the true isSelected card prop once this issue is closed:
// https://github.com/carbon-design-system/carbon-addons-iot-react/issues/1621
[`${iotPrefix}--card__selected`]: isSelected,
}),
className: `${baseClassName}--preview__card`,
isSelected,
});

return (
Expand Down

0 comments on commit 8fad77c

Please sign in to comment.