[Lens] Fix all deprecated mixed-decls warnings (#193864)

This commit is contained in:
Marco Vettorello 2024-09-30 20:43:47 +02:00 committed by GitHub
parent 866adf37f1
commit 7fd3317423
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 50 additions and 63 deletions

View file

@ -1,9 +1,9 @@
.gauge-container {
@include euiScrollBar;
height: 100%;
width: 100%;
// the FocusTrap is adding extra divs which are making the visualization redraw twice
// with a visible glitch. This make the chart library resilient to this extra reflow
overflow: hidden;
user-select: text;
@include euiScrollBar;
}

View file

@ -1,5 +1,4 @@
.heatmap-container {
@include euiScrollBar;
height: 100%;
width: 100%;
// the FocusTrap is adding extra divs which are making the visualization redraw twice
@ -7,4 +6,5 @@
overflow: auto hidden;
user-select: text;
padding: $euiSizeS;
@include euiScrollBar;
}

View file

@ -6,7 +6,6 @@
// mtrChart__legend-isLoading
.legacyMtrVis {
@include euiScrollBar;
height: 100%;
width: 100%;
display: flex;
@ -15,6 +14,7 @@
align-items: center;
flex-wrap: wrap;
overflow: auto;
@include euiScrollBar;
}
.legacyMtrVis__value {

View file

@ -1,10 +1,11 @@
.detailedTooltip {
@include euiToolTipStyle('s');
pointer-events: none;
max-width: $euiSizeXL * 10;
overflow: hidden;
padding: $euiSizeS;
@include euiToolTipStyle('s');
& { // stylelint-disable-line no-duplicate-selectors
max-width: $euiSizeXL * 10;
overflow: hidden;
padding: $euiSizeS;
}
table {
table-layout: fixed;
width: 100%;

View file

@ -14,7 +14,9 @@
&:not(.globalFilterItem-isDisabled) {
@include euiFormControlDefaultShadow;
box-shadow: #{$euiFormControlBoxShadow}, inset 0 0 0 1px $kbnGlobalFilterItemBorderColor; // Make the actual border more visible
& { // stylelint-disable-line no-duplicate-selectors
box-shadow: #{$euiFormControlBoxShadow}, inset 0 0 0 1px $kbnGlobalFilterItemBorderColor; // Make the actual border more visible
}
}
}

View file

@ -5,9 +5,9 @@
}
.kbnSavedQueryManagement__list {
@include euiYScrollWithShadows;
max-height: inherit; // Fixes overflow for applied max-height
// Left/Right padding is calculated to match the left alignment of the
// popover text and buttons
padding: calc($euiSizeM / 2) $euiSizeXS !important; // Override flush
@include euiYScrollWithShadows;
}

View file

@ -24,9 +24,9 @@
}
@include euiBreakpoint('l', 'xl') {
overflow: auto;
@include flexParent(1, 1, 1px);
@include euiScrollBar;
overflow: auto;
}
}

View file

@ -6,7 +6,6 @@
}
.tvbMarkdown__content {
@include euiScrollBar;
display: flex;
flex-direction: column;
flex: 1 0 auto;
@ -16,7 +15,7 @@
right: 0;
bottom: 0;
overflow: hidden;
@include euiScrollBar;
&--middle {
justify-content: center;
}

View file

@ -1,10 +1,9 @@
// stylelint-disable selector-no-qualifying-type
.vgaVis__wrapper {
@include euiScrollBar;
display: flex;
flex: 1 1 0;
overflow: auto;
@include euiScrollBar;
}
.vgaVis {
@ -21,12 +20,11 @@
}
.vgaVis__view {
@include euiScrollBar;
overflow: auto;
z-index: 0;
flex: 1 1 100%;
display: block;
@include euiScrollBar;
canvas {
display: block;

View file

@ -45,7 +45,6 @@ $visLegendWidth: 150px;
}
.visLegend__list {
@include euiScrollBar;
display: flex;
width: $visLegendWidth; // Must be a hard-coded width for the chart to get its correct dimensions
flex: 1 1 auto;
@ -53,6 +52,7 @@ $visLegendWidth: 150px;
overflow-x: hidden;
overflow-y: auto;
@include euiScrollBar;
.visLegend__button {
font-size: $euiFontSizeXS;
text-align: left;

View file

@ -134,12 +134,11 @@
}
.chart {
@include euiScrollBar;
flex: 1 1 100%;
min-height: 0;
min-width: 0;
overflow: visible;
@include euiScrollBar;
> svg {
display: block;
}

View file

@ -1,8 +1,6 @@
.visEditor {
@include flexParent();
height: 100%;
@include flexParent();
@include euiBreakpoint('xs', 's', 'm') {
.visualization {
// While we are on a small screen the visualization is below the
@ -23,7 +21,7 @@ a tilemap in an iframe: https://github.com/elastic/kibana/issues/16457 */
}
.visEditor__content {
@include flexParent();
width: 100%;
z-index: 0;
@include flexParent();
}

File diff suppressed because one or more lines are too long

View file

@ -10,12 +10,11 @@
}
.visNewVisDialogGroupSelection__footer {
padding: 0 $euiSizeXL $euiSizeL;
background: $euiColorLightestShade;
@include euiBreakpoint('xs', 's') {
background: $euiColorEmptyShade;
}
padding: 0 $euiSizeXL $euiSizeL;
background: $euiColorLightestShade;
}
.visNewVisDialogGroupSelection__footerDescriptionList {

View file

@ -3,9 +3,9 @@
}
.lnsHelpPopover__content {
@include euiYScrollWithShadows;
max-height: 40vh;
padding: $euiSizeM;
@include euiYScrollWithShadows;
}
.lnsHelpPopover__buttonIcon {

View file

@ -87,8 +87,8 @@
// Added .lnsLayerPanel__dimension specificity required for animation style override
.lnsLayerPanel__dimension .lnsLayerPanel__dimensionLink {
&:focus {
@include passDownFocusRing('.dimensionTrigger__textLabel');
background-color: transparent;
text-decoration-thickness: $euiBorderWidthThin !important;
@include passDownFocusRing('.dimensionTrigger__textLabel');
}
}

View file

@ -35,10 +35,8 @@
}
.visEditor {
@include flexParent();
height: 100%;
@include flexParent();
@include euiBreakpoint('xs', 's', 'm') {
.visualization {
// While we are on a small screen the visualization is below the
@ -59,7 +57,6 @@ a tilemap in an iframe: https://github.com/elastic/kibana/issues/16457 */
}
.lnsFrameLayout__pageBody {
@include euiScrollBar;
min-width: $lnsPanelMinWidth + $euiSizeXL;
overflow: hidden auto;
display: flex;
@ -73,7 +70,7 @@ a tilemap in an iframe: https://github.com/elastic/kibana/issues/16457 */
z-index: $lnsZLevel1;
border-left: $euiBorderThin;
border-right: $euiBorderThin;
@include euiScrollBar;
&:first-child {
padding-left: $euiSize;
}
@ -111,10 +108,9 @@ a tilemap in an iframe: https://github.com/elastic/kibana/issues/16457 */
}
.lnsConfigPanel {
@include euiYScroll;
padding: $euiSize $euiSize $euiSizeXL ($euiFormMaxWidth + $euiSize);
margin-left: -$euiFormMaxWidth;
@include euiYScroll;
@include euiBreakpoint('xs', 's', 'm') {
padding-left: $euiSize;
margin-left: 0;

View file

@ -6,7 +6,6 @@
}
.lnsSuggestionPanel__suggestions {
@include euiScrollBar;
@include lnsOverflowShadowHorizontal;
padding-top: $euiSizeXS;
overflow-x: scroll;
@ -18,6 +17,7 @@
margin-left: -$euiSizeXS;
padding-right: $euiSizeXS;
margin-right: -$euiSizeXS;
@include euiScrollBar;
}
.lnsSuggestionPanel__button {
@ -31,8 +31,8 @@
box-shadow: none !important; // sass-lint:disable-line no-important
&:focus {
@include euiFocusRing;
transform: none !important; // sass-lint:disable-line no-important
@include euiFocusRing;
}
.lnsSuggestionPanel__expressionRenderer {

View file

@ -5,9 +5,9 @@
}
.lnsWorkspaceWarningList {
@include euiYScroll;
max-height: $euiSize * 20;
width: $euiSize * 16;
@include euiYScroll;
}
.lnsWorkspaceWarningList__item {

View file

@ -17,7 +17,6 @@
.lnsWorkspacePanelWrapper__pageContentBody {
@include euiBottomShadowMedium;
@include euiScrollBar;
flex-grow: 1;
display: flex;
align-items: stretch;
@ -25,7 +24,7 @@
border-radius: $euiBorderRadius;
background: $euiColorEmptyShade;
height: 100%;
@include euiScrollBar;
&>* {
flex: 1 1 100%;
display: flex;

View file

@ -1,5 +1,4 @@
.lnsEmbeddablePanelFeatureList {
@include euiYScroll;
max-height: $euiSize * 20;
@include euiYScroll;
}

View file

@ -1,11 +1,6 @@
.kbnToolbarButton {
line-height: $euiButtonHeight; // Keeps alignment of text and chart icon
// Override background color for non-disabled buttons
&:not(:disabled) {
background-color: $euiColorEmptyShade;
}
// todo: once issue https://github.com/elastic/eui/issues/4730 is merged, this code might be safe to remove
// Some toolbar buttons are just icons, but EuiButton comes with margin and min-width that need to be removed
min-width: 0;
@ -13,6 +8,11 @@
border-style: solid;
border-color: $euiBorderColor; // Lighten the border color for all states
// Override background color for non-disabled buttons
&:not(:disabled) {
background-color: $euiColorEmptyShade;
}
.kbnToolbarButton__text > svg {
margin-top: -1px; // Just some weird alignment issue when icon is the child not the `iconType`
}

View file

@ -30,8 +30,8 @@
}
.lnsDimensionContainer__content {
@include euiYScroll;
flex: 1;
@include euiYScroll;
}
.lnsDimensionContainer__footer {

View file

@ -19,8 +19,8 @@
}
.lnsSettingWithSiblingFlyout__content {
@include euiYScroll;
flex: 1;
@include euiYScroll;
}
.lnsSettingWithSiblingFlyout__footer {

View file

@ -1,12 +1,12 @@
// styles needed to display extra drop targets that are outside of the config panel main area while also allowing to scroll vertically
.lnsConfigPanel__overlay {
clip-path: polygon(-100% 0, 100% 0, 100% 100%, -100% 100%);
@include euiBreakpoint('xs', 's', 'm') {
clip-path: none;
}
max-inline-size: $euiSizeXXL * 20;
min-inline-size: $euiSizeXXL * 8;
background: $euiColorLightestShade;
@include euiBreakpoint('xs', 's', 'm') {
clip-path: none;
}
.kbnOverlayMountWrapper {
padding-left: $euiFormMaxWidth;
margin-left: -$euiFormMaxWidth;

View file

@ -1,11 +1,10 @@
.lnsVisualizationContainer {
@include euiScrollBar;
overflow: auto hidden;
user-select: text;
@include euiScrollBar;
}
.lnsExpressionRenderer {
@include euiScrollBar;
position: relative;
width: 100%;
height: 100%;
@ -13,7 +12,7 @@
overflow: auto;
// important for visualizations with no padding
border-radius: $euiBorderRadius;
@include euiScrollBar;
.lnsExpressionRenderer__component {
position: static; // Let the progress indicator position itself against the outer parent
}