You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scroll down to the .ui.dropdown rule in the Rules tab.
Deselect the line-height: var(--line-height-default) CSS rule.
After step 4 above, the height of the Options button shrinks to the same height as the Browse Source button.
The :root element defines the --line-height-default value as normal.
The .ui.button style has line-height: 1em;. Setting this on the Options div element makes the height consistent.
Conclusion
Firefox is prioritizing the .ui.dropdown rule for the line height when the classes ui dropdown button are used together. I'm not sure about other browsers.
There are several possible ways to fix this:
Add a .ui.dropdown.button rule that sets line-height: 1em; consitent with the .ui.button rule.
Modify the .ui.dropdown line height to be 1em to be consistent with .ui.button.
Replace .ui.button { ... } with .ui.button, .ui.button.dropdown { ... } to make the button rule have a higher CSS priority than .ui.dropdown.
Gitea Version
1.21.0+rc1-23-g21f1e223d
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
2.34.1
Operating System
Ubuntu
How are you running Gitea?
Building from source using the bindata option.
Database
SQLite
The text was updated successfully, but these errors were encountered:
Backport #27632 by @wxiaoguang
1. fix#27631 , and add samples to devtest page
2. fix incorrect color for "ui dropdown button" when hover
Co-authored-by: wxiaoguang <[email protected]>
Description
URL: https://try.gitea.io/rhdunn/test-options-button/commit/ad9c1583bd7bf8f18bf20112494b5ba7b5d25c7f
Investigation
.ui.dropdown
rule in the Rules tab.line-height: var(--line-height-default)
CSS rule.After step 4 above, the height of the Options button shrinks to the same height as the Browse Source button.
The
:root
element defines the--line-height-default
value as normal.The
.ui.button
style hasline-height: 1em;
. Setting this on the Options div element makes the height consistent.Conclusion
Firefox is prioritizing the
.ui.dropdown
rule for the line height when the classesui dropdown button
are used together. I'm not sure about other browsers.There are several possible ways to fix this:
.ui.dropdown.button
rule that setsline-height: 1em;
consitent with the.ui.button
rule..ui.dropdown
line height to be1em
to be consistent with.ui.button
..ui.button { ... }
with.ui.button, .ui.button.dropdown { ... }
to make the button rule have a higher CSS priority than.ui.dropdown
.Gitea Version
1.21.0+rc1-23-g21f1e223d
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
2.34.1
Operating System
Ubuntu
How are you running Gitea?
Building from source using the bindata option.
Database
SQLite
The text was updated successfully, but these errors were encountered: