-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Core UI] Home Page Redesign Class & Style Tweaks #74037
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
Changes from all commits
f3917c2
4a5e35a
bb3bdd1
338f385
507656b
65d3c1a
8ddb840
a3df8c5
f73bbe3
cf3f33d
0079a2e
b54bcf1
5347be3
2d53520
dbd0e30
e1fc53a
d8136f6
d904c20
724f822
14e31b9
fc15c55
44bc29f
de161c5
31cbc47
5f7ec22
b16e2e3
8027a18
2db6133
7a309cf
8c6ac43
d1f6013
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,9 @@ | |
| "xpack", | ||
| "observability" | ||
| ], | ||
| "requiredPlugins": [ | ||
| "home" | ||
| ], | ||
| "optionalPlugins": [ | ||
| "licensing", | ||
| "home" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,6 @@ export class Plugin implements PluginClass<ObservabilityPluginSetup, Observabili | |
| icon: 'logoObservability', | ||
| path: '/app/observability', | ||
| order: 200, | ||
| className: 'homSolutionsSection__magentaCard', | ||
| }); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See comment above regarding why we likely need to keep this (or something similar to it).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See my comment above as well :) |
||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,7 +84,6 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S | |
| icon: APP_ICON, | ||
| path: APP_OVERVIEW_PATH, | ||
| order: 300, | ||
| className: 'homSolutionsSection__blackCard', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See comment above regarding why we likely need to keep this (or something similar to it).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See my comment above as well :) |
||
| }); | ||
|
|
||
| plugins.home.featureCatalogue.register({ | ||
|
|
||
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.
See comment above regarding why we likely need to keep this (or something similar to 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.
My reasoning for changing this class (and similar classes) is because I'm attempting to avoid classifying elements based on the styles they will convey. Instead, I'm trying to classify elements based on their content and/or role. Doing so will prove more sustainable maintenance-wise.
For example, if we were to change the color of this element from blue to purple, we'd have to update both the CSS and the class name. With the class structure I'm proposing, we'd only have to update the CSS. Thoughts?
Uh oh!
There was an error while loading. Please reload this page.
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.
Let's get a better understanding of the
idusage here. Generally speaking, I agree that putting the color in the class name is not great.