fix(buttons): force identical height on mixed <a>/<button> pairs
Set explicit height:2rem, line-height:1, font-family:inherit on all children of button group containers. Browsers apply different default line-height and font-family to <button> vs <a>, causing height differences that persist even with identical padding and display:inline-flex. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -266,6 +266,15 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Equalise <a> and <button> rendering */
|
||||
.actionCell > * {
|
||||
height: 2rem;
|
||||
line-height: 1;
|
||||
font-family: inherit;
|
||||
box-sizing: border-box;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.addButton {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -145,6 +145,14 @@
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* Equalise <a> and <button> rendering */
|
||||
.actions > * {
|
||||
height: 2rem;
|
||||
line-height: 1;
|
||||
font-family: inherit;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.btnSecondary,
|
||||
.btnPrimary {
|
||||
flex: 1;
|
||||
|
||||
@@ -128,6 +128,14 @@
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Equalise <a> and <button> rendering */
|
||||
.rowActions > * {
|
||||
height: 2rem;
|
||||
line-height: 1;
|
||||
font-family: inherit;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.btnView {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user