Skip to content

Commit

Permalink
chore: Use classname to move inline colors to variables - refs #157127
Browse files Browse the repository at this point in the history
  • Loading branch information
dana-cfc4 committed Jul 12, 2023
1 parent 78bfad7 commit a082719
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchBlock/BlockContainer/SlotEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function SlotEditor(props) {
icon
compact
basic
color={hasData ? 'red' : null}
className={hasData ? 'redMenuButton' : null}
onClick={() => setActiveIndex(index)}
>
{label}
Expand Down
10 changes: 10 additions & 0 deletions src/SearchBlock/edit.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@import '~./less/variables.less';
@import (multiple, reference, optional) '../../theme.config';

@type: extra;
@element: custom;

@overlayZIndex: 1;

Expand All @@ -20,6 +24,12 @@
border: none;
}

.redMenuButton {
color: @red !important;
box-shadow: none !important;
font-weight: bold;
}

.ui.basic.button {
border: 0px;

Expand Down

0 comments on commit a082719

Please sign in to comment.