quasar icon indicating copy to clipboard operation
quasar copied to clipboard

QPopupProxy with date has some background bleeding on top right and left corners

Open Evertvdw opened this issue 3 years ago • 4 comments

Describe the bug Using a QInput to model a date with QDate and QTime inside a popup proxy. When viewing this on a darker background you notice a small white edge at the top-left and top-right corner.

Codepen/jsFiddle/Codesandbox (required or your issue may be closed) https://codepen.io/Mett-codepens/pen/QWqGYWa?editors=1010

To Reproduce Change the date or time by clicking on the icons. Check the top-left and top-right edges of the popup. This background seems to come from the q-menu styling background: #fff. Together with the border-top-left-radius: inherit and border-top-right-radius: inherit this seems to be causing issues.

Expected behavior No white edges there :)

Screenshots image

Platform (please complete the following information): Quasar Version: 3.2.4 @quasar/app Version:

OS: Windows Browsers: Firefox (v95) and Chrome(v96)

Evertvdw avatar Dec 13 '21 13:12 Evertvdw

Unfortunately this is a glitch with the border radius on Chrome. You can see the same with QDate/QTime in page: https://codepen.io/pdanpdan/pen/yLzVrYM?editors=1000

You can try and use square borders, or if somebody finds a solution we'll fix it.

pdanpdan avatar Dec 13 '21 15:12 pdanpdan

@pdanpdan I have it on Firefox, Chrome and Edge at least, so it's not limited to Chrome. Removing the border-top-left-radius: inherit and border-top-right-radius: inherit and applying the background: #fff on the first child of .q-menu instead of .q-menu itself solves the problem for me while still keeping the same visual appearance.

Evertvdw avatar Dec 13 '21 16:12 Evertvdw

It doesn't look like it's going to be fixed soon: https://bugs.chromium.org/p/chromium/issues/detail?id=1211455 https://bugs.chromium.org/p/chromium/issues/detail?id=977433 https://bugs.chromium.org/p/chromium/issues/detail?id=805495 https://bugs.chromium.org/p/chromium/issues/detail?id=491574 https://bugs.chromium.org/p/chromium/issues/detail?id=157102

pdanpdan avatar Dec 13 '21 21:12 pdanpdan

Is this fixed?

Johnklein94 avatar Jul 28 '22 16:07 Johnklein94