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

don't use backdrop for dialogs #9649

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

mawinter69
Copy link
Contributor

@mawinter69 mawinter69 commented Aug 22, 2024

The backdrop can make dialogs look really bad when there are large areas with dark color right behind the dialog (see screenshot).

Before:
image

After:
image

Testing done

Manual testing

Proposed changelog entries

  • Prevent backdrop color from affecting dialogs that appear above the backdrop.

Proposed upgrade guidelines

N/A

Submitter checklist

Desired reviewers

@mention

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

Maintainer checklist

The backdrop can make dialogs look really bad when there are large areas
with dark color right behind the dialog (see screenshot).
@NotMyFault NotMyFault added the bug For changelog: Minor bug. Will be listed after features label Aug 24, 2024
@NotMyFault NotMyFault requested a review from a team August 24, 2024 09:56
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.

/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 Aug 24, 2024
Copy link
Contributor

@StefanSpieker StefanSpieker left a comment

Choose a reason for hiding this comment

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

Thanks for the fix, I also noticed that today.

Comment on lines -6 to -8
background: transparent;
box-shadow: var(--dialog-box-shadow);
backdrop-filter: var(--dialog-backdrop-filter);
Copy link
Contributor

@janfaracik janfaracik Aug 24, 2024

Choose a reason for hiding this comment

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

Could we potentially keep the backdrop filter but remove the brightness() (which needs to be removed anyway as it's breaking on HDR displays...):

  background-color: color-mix(in srgb, var(--background) 85%, transparent);
  box-shadow: var(--dialog-box-shadow), 0 0 0 100vmax rgba(23, 28, 37, 0.6);
  backdrop-filter: blur(30px);
  animation: jenkins-dialog-animate-in 0.25s cubic-bezier(0, 0.68, 0.5, 1.5);
  overflow: hidden;
  padding: $jenkins-dialog-padding 0 0 0;
  display: flex;
  flex-direction: column;
  gap: $jenkins-dialog-padding;

  &__title {
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0 $jenkins-dialog-padding;
    color: var(--text-color);
  }

Something like the above - the blur is still there just drastically toned down (so we still get a little colour bleed, but nothing overtly distracting like it is now). ::backdrop has been killed in favour of the increased box-shadow as backdrop appears behind the dialog, darkening it, whereas box shadow masks as expected.

Very exaggerated example where the above still looks alright:

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would prefer that the dialog has a clear one color only background. It should not be influenced by what is behind the dialog in any way.
btw the same applies to drop down menus and tooltips
image
It just looks not good I think

@timja timja merged commit 9b3d940 into jenkinsci:master Aug 26, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For changelog: Minor bug. Will be listed after features ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants