Skip to content

Commit 7204360

Browse files
authored
Fix red mask style for chromium browsers (#481)
1 parent aa2f907 commit 7204360

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes to the Wazuh app project will be documented in this file.
88

99
- Support for Wazuh 4.10.1
1010

11+
### Fixed
12+
13+
- Fix red mask style for chromium browsers [#481](https://github.com/wazuh/wazuh-dashboard/pull/481)
14+
1115
## Wazuh dashboard v4.10.0 - OpenSearch Dashboards 2.16.0 - Revision 08
1216

1317
### Changed

src/core/public/styles/_base.scss

+29
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,32 @@ $euiCollapsibleNavWidth: $euiSize * 20;
6363
height: auto;
6464
width: auto;
6565
}
66+
67+
// THIS WAS FIXED IN OPENSEARCH DASHBOARDS 2.17.1. THIS IS A TEMPORARY FIX FOR OSD 2.16.0
68+
// Temporary fix for a bug with Chrome 129 when handling mask-image
69+
// OUI provides the mask-image used in these which Chrome 129 fails to render correctly.
70+
// It is not known if or when Chrome will fix this. Since almost all of these classes
71+
// are applied to elements with scrollbars where their content contained, containing the
72+
// paint is a safe solution.
73+
// This can be achieved with various tricks like transform: translate?(0) or
74+
// transform-style: preserve-3d but they add to the browsers workload; contain doesn't.
75+
// ToDo: Remove these when most used versions of Chrome no longer suffer from the bug.
76+
// From OUI: any ruleset containing mask-image
77+
.eui-yScrollWithShadows,
78+
.eui-xScrollWithShadows,
79+
.euiYScrollWithShadows,
80+
.euiDataGrid__controlScroll,
81+
.euiDataGridColumnSelector__columnList,
82+
.euiDataGridColumnSorting__fieldList,
83+
.euiFlyoutBody .euiFlyoutBody__overflow,
84+
.euiFlyoutBody .euiFlyoutBody__overflow.euiFlyoutBody__overflow--hasBanner,
85+
.euiModalBody .euiModalBody__overflow,
86+
.euiSelectableList__list,
87+
// For OSD: consumers of eui?ScrollWithShadows
88+
.osdQueryBar__textarea:not(:focus):not(:invalid),
89+
.osdSavedQueryManagement__list,
90+
.dscCanvas,
91+
.vbConfig,
92+
.vbSidenav__style {
93+
mask-image: unset;
94+
}

0 commit comments

Comments
 (0)