Skip to content
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

Refine table and tabs #9411

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Conversation

janfaracik
Copy link
Contributor

@janfaracik janfaracik commented Jun 21, 2024

Really small/subtle pull request to refine the table and tabs components. These changes are more obvious in dark mode.

Differences

  • Tightens up the padding, bringing it more inline with the recently introduced cards
  • Slightly more rounded, again bringing it more inline with cards
  • Borders are now visible when in dark mode (same as cards)

Before

image

After

image

Before

image

After

image

Testing done

  • Tables and tabs look as expected

Proposed changelog entries

  • Refine tables and tabs with reduced padding, rounded corners to match cards, and borders that are visible in dark mode.

Proposed upgrade guidelines

N/A

Submitter checklist

Desired reviewers

@jenkinsci/sig-ux

Before the changes are marked as ready-for-merge:

Maintainer checklist

@timja
Copy link
Member

timja commented Jun 21, 2024

Could you add screenshots with multiple views (as I think that doesn't look the best atm)?

@janfaracik
Copy link
Contributor Author

Could you add screenshots with multiple views (as I think that doesn't look the best atm)?

Agree there - this MR hasn't changed how the tabs are displayed, more the background of them.

Before

image

After

image

Before

image

After

image

@janfaracik
Copy link
Contributor Author

/label web-ui

@comment-ops-bot comment-ops-bot bot added the web-ui The PR includes WebUI changes which may need special expertise label Jun 22, 2024
@timja timja added the rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label Jun 22, 2024
Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@timja timja requested a review from a team June 22, 2024 12:10
Copy link
Member

@uhafner uhafner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good (in the screenshots, I did not test it).

Did you check if this has no negative impact on plugins that use Boostrap tabs or Jenkins tables in table column tooltips? The warnings and coverage plugins are 2 examples.

@mawinter69
Copy link
Contributor

The screenshots look as if they were taken on top of #9410 because the sort arrows look different to what we have now

@janfaracik
Copy link
Contributor Author

The screenshots look as if they were taken on top of #9410 because the sort arrows look different to what we have now

Good spot - I must have been half asleep doing this. I've updated the screenshots, only difference is the arrows are correct now. Thanks!

@janfaracik
Copy link
Contributor Author

janfaracik commented Jun 23, 2024

Looks good (in the screenshots, I did not test it).

Did you check if this has no negative impact on plugins that use Boostrap tabs or Jenkins tables in table column tooltips? The warnings and coverage plugins are 2 examples.

Yup - working fine:

image image image image

@timja
Copy link
Member

timja commented Jun 23, 2024

/label ready-for-merge


This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback.

Thanks!

@comment-ops-bot comment-ops-bot bot added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Jun 23, 2024
Comment on lines +177 to +178
--table-border-radius: 0.75rem;
--table-row-border-radius: 0.3125rem;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the unit change here for? Weirdos People who "zoom text only" on web pages?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This explains it well: https://stackoverflow.com/a/43131958

Generally in new web development rem is used pretty much exclusively (mostly) as it adapts to the users font-size

Copy link
Member

@daniel-beck daniel-beck Jun 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you be more specific here? The linked post does not seem to answer why the non-font related sizes here were changed to be dependent on font. The only difference I was able to identify is font-only zoom, which apparently nobody uses anymore anyway.

@MarkEWaite MarkEWaite merged commit b27fe88 into jenkinsci:master Jun 24, 2024
15 checks passed
@timja timja deleted the refine-table-tabs branch June 24, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted web-ui The PR includes WebUI changes which may need special expertise
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants