-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens] Align Lens style with Borealis #204839
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ Adding an early review due to upcoming PTO.
...es/kbn-coloring/src/shared_components/color_mapping/components/color_picker/color_picker.tsx
Outdated
Show resolved
Hide resolved
.../kbn-coloring/src/shared_components/color_mapping/components/color_picker/palette_colors.tsx
Outdated
Show resolved
Hide resolved
packages/kbn-visualization-ui-components/components/dimension_buttons/dimension_button.tsx
Outdated
Show resolved
Hide resolved
.../lens/public/datasources/form_based/operations/definitions/formula/editor/formula_editor.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.tsx
Outdated
Show resolved
Hide resolved
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked locally and works fine.
It matches all the requested changes.
no fontsize change applied
fd3ebde
to
3192c14
Compare
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together, @markov00. It looks great. I left a few small comments below. Once those are addressed, I think this is good to go.
@@ -47,6 +49,11 @@ export function PaletteColors({ | |||
? neutralPalette.getColor(color.colorIndex) | |||
: palettes.get(color.paletteId).getColor(color.colorIndex) | |||
: color.colorCode; | |||
const selectedColorSwatchStyle = { | |||
outline: 'currentcolor solid 2px', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to use a token for the outline thickness here? Something like euiTheme.border.width.thick
?
@@ -47,6 +49,11 @@ export function PaletteColors({ | |||
? neutralPalette.getColor(color.colorIndex) | |||
: palettes.get(color.paletteId).getColor(color.colorIndex) | |||
: color.colorCode; | |||
const selectedColorSwatchStyle = { | |||
outline: 'currentcolor solid 2px', | |||
outlineOffset: '-1px', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here. Would applying a negative to the euiTheme.border.width.thin
token make sense here?
@@ -40,17 +40,17 @@ $domDragDropZLevel3: 3; | |||
|
|||
// Style for drop area when there's an item being dragged | |||
@mixin mixinDomDroppableActive($borderWidth: $euiBorderWidthThin) { | |||
background-color: transparentize($euiColorVis0, .9) !important; | |||
background-color: transparentize($euiColorSuccess, .9) !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than applying transparency to $euiColorSuccess
, would it be better to use $euiColorBackgroundBaseSuccess
here?
} | ||
} | ||
|
||
// Style for drop area while hovering with item | ||
@mixin mixinDomDroppableHover($borderWidth: $euiBorderWidthThin) { | ||
background-color: transparentize($euiColorVis0, .75) !important; | ||
background-color: transparentize($euiColorSuccess, .75) !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than applying transparency to $euiColorSuccess
, would it be better to use $euiColorBackgroundLightSuccess
here?
@@ -51,14 +51,14 @@ | |||
} | |||
|
|||
.domDroppable--incompatible:not(.domDroppable__overlayWrapper) { | |||
background-color: $euiColorHighlight !important; | |||
background-color: transparentize($euiColorWarning, .9) !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than applying transparency to $euiColorWarning
, would it be better to use $euiColorBackgroundBaseWarning
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On line 180, we're currently using background-color: transparentize($euiColorVis0, .75);
to color the reorderable drop zone for dimension items. Similar to the previous comments, can we instead use $euiColorBackgroundBaseSuccess
(when not hovering with a droppable item) and $euiColorBackgroundLightSuccess
(when hovering with a droppable item) with no transparency?
&:before { | ||
border-color: $euiColorVis0 !important; | ||
border-color: $euiColorSuccess !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this variable should be changed to $euiColorBorderBaseSuccess
. Please note that this variable may be bugged/erroneous at the moment, but the EUI team is working on a PR to remedy it.
&:before { | ||
border-color: $euiColorVis0 !important; | ||
border-color: $euiColorSuccess !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this variable should be changed to $euiColorBorderBaseSuccess
. Please note that this variable may be bugged/erroneous at the moment, but the EUI team is working on a PR to remedy it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ $euiColorBorderBaseSuccess
should work fine, but $euiColorBorderStrongSuccess
required a fix 🐛 (that applies for all "strong" border tokens, base tokens should be ok)
&:before { | ||
border: $euiBorderWidthThin dashed $euiColorVis5 !important; | ||
border: $euiBorderWidthThin dashed $euiColorWarning !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this border color variable should be changed to $euiColorBorderBaseWarning
. Please note that this variable may be bugged/erroneous at the moment, but the EUI team is working on a PR to remedy it.
&:before { | ||
border-color: $euiColorVis5 !important; | ||
border-color: $euiColorWarning !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this variable should be changed to $euiColorBorderBaseWarning
. Please note that this variable may be bugged/erroneous at the moment, but the EUI team is working on a PR to remedy it.
Summary
This PR updates the style of Lens to align it with the new Borealis theme.
It covers the set of tasks in #203050 within the
Lens editor panels
list.Comments are applied in order as in the mentioned issue