-
Notifications
You must be signed in to change notification settings - Fork 178
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
Fix/13062 title label misaligned, spacing issues #3476
Fix/13062 title label misaligned, spacing issues #3476
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3476 +/- ##
==========================================
- Coverage 85.39% 85.37% -0.03%
==========================================
Files 1352 1352
Lines 30947 30947
Branches 8648 8648
==========================================
- Hits 26428 26421 -7
- Misses 4519 4526 +7
... and 5 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@gitdallas To answer the space question, currently there's no clear visual distinction of where's the end of a group (model location, source model format). For example, how to tell which attributes belong to the Source Model Format. Does version belong to it? Does Author belong to it? I'm trying to use different spacings (i.e., smaller spaces within the group items) to clarify that relationship. |
Talking with @gitdallas, I'll bring the spacing/grouping issues to PF and see what they suggest. What we have now looks good to me. Thanks! Edit: Based on PF's feedback, it is suggested to add dividers between groups to make the hierarchy clear. See the image below. Not sure whether we should consider it as part of the scope of this issue (as a workaround for the smaller spacings within groups). |
@gitdallas would you rather we merge this and open a followup issue for adding the dividers or do you want to add the dividers as part of this issue/PR? If you're up for it I think it might be nice to just get it done now. |
Signed-off-by: gitdallas <5322142+gitdallas@users.noreply.github.com>
Signed-off-by: gitdallas <5322142+gitdallas@users.noreply.github.com>
Signed-off-by: gitdallas <5322142+gitdallas@users.noreply.github.com>
0dd7404
to
43a2547
Compare
Thanks for the updates @gitdallas, looks good! |
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.
LGTM, thanks @gitdallas !
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mturley The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
closes: https://issues.redhat.com/browse/RHOAIENG-13062
Description
fix the misaligned title - archived label. removed some unnecessary wrappers that were stealing the flex display and set align children to center. all 3 places will look like this now:
in the mr version details, i removed
isFillColumns
which was adding some extra space, added margin below the titles (Model Location and Source model format). It looks like this now:Hoping this is good, but I was a little confused with the 8px spacing mentioned in the figma (@yih-wang ) - it seems like the figma is saying these should all be 8px:
but PF has row gap between description groups at 24px, and the gap between a descriptiongroup's term and description at 8px.
this is the PF DescriptionList default spacing, this component is using the
DashboardDescriptionListGroup
components (a group is a label + value) and we aren't adding any extra styling there.The space between (the darker lime color in the image above) is PF, from the docs:
And the same spacing appears between groups on the PF examples:
list:
group:
The name and version are already grouped together:
How Has This Been Tested?
Title and "archived" label should be vertically center aligned for both archived model and version details page. The mr versions details should be spaced properly
Test Impact
none - styling changes
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main