[Research] [CCI] OUI Compliance audit of src/core/public/styles
#4167
Labels
enhancement
New feature or request
OUI compliance
Issues and PRs to maximize OUI usage and remove style and component hacks
Audit for #4117
There are only 3
.scss
files in this folder, with one of them being just_index.scss
that includes the rest of two_ace_overrides.scss
consist of styles for Ace Code Editor, and therefore does not need any change._base.scss
Mostly there are styles that support or supplement OUI, likeOpenSearch-Dashboards/src/core/public/styles/_base.scss
Lines 41 to 50 in bd7d707
In
_base.scss
there two other classes unrelated to OUI:.application
and.app-container
OpenSearch-Dashboards/src/core/public/styles/_base.scss
Lines 22 to 39 in bd7d707
.app-container
is used in plain html documents and therefore is not replacable by OUI components. e.g.OpenSearch-Dashboards/src/plugins/dashboard/public/application/dashboard_app.html
Lines 1 to 9 in bd7d707
It is also used in visualize plugin
VisualizeEditorCommon
component.OpenSearch-Dashboards/src/plugins/visualize/public/application/components/visualize_editor_common.tsx
Lines 78 to 82 in bd7d707
I'm not sure why this class is used there instead of using local css classes.
.application
is used for the OSD app container and testing.Conclusion
Overall it seems that nothing needs to be changed in
src/core/public/styles
, but it might be better to remove usage of.app-container
style in visualize plugin in favor of local css classes.The text was updated successfully, but these errors were encountered: