Skip to content

Commit

Permalink
fix: locked dimension color and story example
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-joe authored and edoardo committed Feb 20, 2024
1 parent 30b56da commit 3a6ab36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/__demo__/DimensionsPanel.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ storiesOf('DimensionsPanel', module).add('locked dimension', () => {
<DimensionsPanel
dimensions={[...fixedDimensions, ...dynamicDimensions]}
onDimensionClick={onDimensionClick}
selectedIds={[DIMENSION_ID_DATA]}
lockedDimension={(dimension) => dimension === DIMENSION_ID_DATA}
/>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
.lockWrapper svg path {
fill: var(--colors-grey800);
}

.lockWrapper {
background: var(--colors-grey300);
height: 20px;
Expand All @@ -74,6 +75,9 @@
justify-content: center;
}

.item.selected .lockWrapper {
background: #cbe7e5;
}
.item.selected .lockWrapper svg path {
fill: var(--colors-teal900);
}

0 comments on commit 3a6ab36

Please sign in to comment.