Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,30 @@
color: var(--ion-color-dark);
padding: 8px 0;

ion-button.ion-focused {
border: 1px solid black;
border-radius: 8px;
ion-button {
min-width: 200px;
flex: 0 1 auto;

// restore padding that was removed by global button reset
--padding-top: 13px;
--padding-bottom: 13px;
min-height: 44px; // WCAG 2.5.8 target size minimum

&.ion-focused {
border: 1px solid black;
border-radius: 8px;
}

// target shadow DOM button to restore padding
&::part(native) {
padding-top: 13px;
padding-bottom: 13px;
}

// ensure proper sizing on desktop
@media (min-width: 768px) {
min-width: 240px;
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions projects/v3/src/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ ion-item-divider {
// Use darker background for WCAG contrast compliance (4.5:1 for normal text)
// color-mix creates darker shade: 60% primary + 40% dark green
background-color: color-mix(in srgb, var(--ion-color-primary) 60%, #1a4d2a);

// Fallback for browsers without color-mix support
@supports not (color-mix(in srgb, white, black)) {
background-color: var(--ion-color-primary-shade, #2a6d3f);
}

color: white;
text-decoration: none;
z-index: 9999;
Expand Down Expand Up @@ -173,7 +173,7 @@ p, span, div, ion-label, ion-text {
.icon-button {
background: none;
border: none;
padding: 0;
padding: 0; // WCAG 2.5.8 target size compliance
cursor: pointer;
display: inline-flex;
align-items: center;
Expand Down