Repository navigation
mgr/dashboard: introduce details card component - #64631
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
0578e19 to
f69f2dc
Compare
f69f2dc to
95f279d
Compare
There was a problem hiding this comment.
couldn't find a proper carbon token for this...
There was a problem hiding this comment.
I don't think shadow should be added as per: https://carbondesignsystem.com/components/tile/usage/#when-not-to-use
There was a problem hiding this comment.
You are right, drop-shadow and box-shadow are not exactly the same but I was looking more into the guidelines statement:
Tiles reside on the same plane as the page background layer and do not have elevation
I believe box-shadow adds that elevation which is againts the carbondesignsystem guidelines.
However you raised a real issue on having the same tile and backgroud color, which led me to look into themes and color, and from my findings I'm not sure if we are properly following the themeing guidelines.
Whenever using a light theme https://carbondesignsystem.com/elements/color/overview/#light-themes
In the light themes, layers alternate between White and Gray 10.
So in the landing page we have gray.10 as background color and white for the tiles, but other places in thashboard we use white background and gray tables

There was a problem hiding this comment.
I agree. The colors we use are not the carbon guided ways. As we adopt carbon more, we should probably follow the guideline on applying colors everywhere. For now the cds-tile worked the trick for me and I don't need to hard-code colors or add shadows to it as the tile color fits both backgrounds. Hence removed the shadows and the customization around it. Thanks again.
95f279d to
cd6a73a
Compare
|
jenkins retest this please |
Pegonzal
left a comment
There was a problem hiding this comment.
Left a couple comments with some thoughts I'm wondering, but LGTM
There was a problem hiding this comment.
Why are we not using cds-tile to achive this?
There was a problem hiding this comment.
thanks a lot @Pegonzal. Using the tile now. updated the screenshot
There was a problem hiding this comment.
You are right, drop-shadow and box-shadow are not exactly the same but I was looking more into the guidelines statement:
Tiles reside on the same plane as the page background layer and do not have elevation
I believe box-shadow adds that elevation which is againts the carbondesignsystem guidelines.
However you raised a real issue on having the same tile and backgroud color, which led me to look into themes and color, and from my findings I'm not sure if we are properly following the themeing guidelines.
Whenever using a light theme https://carbondesignsystem.com/elements/color/overview/#light-themes
In the light themes, layers alternate between White and Gray 10.
So in the landing page we have gray.10 as background color and white for the tiles, but other places in thashboard we use white background and gray tables

as per https://pages.github.ibm.com/ibmcloud/pal/storybook/?path=/story/components-card--details-with-stacked-rows added a details component which can be used as ``` <cd-details-card title="card title"> <ng-container class="details-body-content"> <div cdsCol [columnNumbers]="{lg: 4}"> <span class="cds--label"> label </span> <span>value</span> </div </ng-container> </cd-details-card> ``` Fixes: https://tracker.ceph.com/issues/72246 Signed-off-by: Nizamudeen A <[email protected]>
cd6a73a to
7cf2b5f
Compare
fixed test case Fixes: https://tracker.ceph.com/issues/72246 Signed-off-by: Naman Munet <[email protected]>
|
jenkins test dashboard |
|
jenkins test dashboard cephadm |
|
jenkins test dashboard |
|
No Dashboard test failure because of changes in this PR: |

as per https://pages.github.ibm.com/ibmcloud/pal/storybook/?path=/story/components-card--details-with-stacked-rows
added a details component which can be used as
Fixes: https://tracker.ceph.com/issues/72246
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition