diff --git a/templates/devtest/gitea-ui.tmpl b/templates/devtest/gitea-ui.tmpl
index fa74ed7ce..73293ddf4 100644
--- a/templates/devtest/gitea-ui.tmpl
+++ b/templates/devtest/gitea-ui.tmpl
@@ -250,6 +250,15 @@
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
+
+
+
+
Button align with ...
+
+ ... Dropdown Button
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+
+
diff --git a/web_src/css/base.css b/web_src/css/base.css
index 1a4e9d16a..87912179a 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -2194,7 +2194,7 @@ table th[data-sortt-desc] .svg {
height: 15px;
}
-.ui.dropdown {
+.ui.dropdown:not(.button) {
line-height: var(--line-height-default); /* the dropdown doesn't have default line-height, use this to make the dropdown icon align with plain dropdown */
}
diff --git a/web_src/css/modules/button.css b/web_src/css/modules/button.css
index 0d30249c9..36cb499ae 100644
--- a/web_src/css/modules/button.css
+++ b/web_src/css/modules/button.css
@@ -128,11 +128,13 @@ It needs some tricks to tweak the left/right borders with active state */
.ui.primary.button:focus,
.ui.primary.buttons .button:focus {
background: var(--color-primary);
+ color: var(--color-primary-contrast);
}
.ui.primary.button:hover,
.ui.primary.buttons .button:hover {
background: var(--color-primary-hover);
+ color: var(--color-primary-contrast);
}
.ui.primary.button:active,