Skip to content

Commit

Permalink
fix(protocol-designer): fix styles for SelectionRect (#1714)
Browse files Browse the repository at this point in the history
SelectionRect fill color broke in CSS refactor, fix & update colors
  • Loading branch information
IanLondon authored Jun 18, 2018
1 parent d2c182c commit 295940e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/src/styles/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
--c-success: #60b120;

/* Misc */
--c-overlay: rgba(0, 0, 0, 0.7);
--c-selection-overlay: color(var(--c-highlight) alpha(0.3));
--c-plate-bg: #ccc;
--c-white: #fff;
--c-black: #000;
Expand Down
11 changes: 6 additions & 5 deletions protocol-designer/src/components/SelectionRect.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
@import '@opentrons/components';

.selection_rect {
pointer-events: none; /* prevents this div from occluding wells during document.elementFromPoint sampling */
}

rect.selection_rect {
/* svg version */
fill: var(--c-overlay);
stroke: gray;
fill: var(--c-selection-overlay);
stroke: var(--c-highlight);
stroke-width: 0.4;
stroke-dasharray: 0.75, 0.5;
}

div.selection_rect {
/* normal html version */
background-color: var(--c-overlay);
background-color: var(--c-selection-overlay);
position: fixed;
z-index: 1000;
border-radius: 0;
border: 1px gray dashed;
border: 1px var(--c-highlight);
}

0 comments on commit 295940e

Please sign in to comment.