Skip to content

Commit 03979dd

Browse files
Improve semantic consistency with dedicated surface and border tokens
Co-authored-by: michaelschoenbaechler <49410646+michaelschoenbaechler@users.noreply.github.com>
1 parent 1935277 commit 03979dd

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

src/app/business/components/business-card/business-card.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
.business-label {
1111
border-radius: var(--ion-border-radius-lg);
12-
border: 1px solid var(--ion-color-border);
12+
border: var(--ion-border-width-thin) solid var(--ion-color-border);
1313
color: var(--ion-color-text-secondary);
1414
padding: var(--ion-padding-xs) var(--ion-padding-sm);
1515
font-size: var(--ion-font-size-sm);

src/app/council-member/components/council-member-card/council-member-card.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
border-radius: var(--ion-border-radius-sm);
33
box-shadow: var(--ion-box-shadow-lg);
44
overflow: hidden;
5-
background: var(--ion-color-secondary);
5+
background: var(--ion-color-surface);
66
margin: 0 0 var(--ion-padding-sm) 0;
77
}
88

@@ -37,5 +37,5 @@
3737
width: 2rem; /* adjust as per your needs */
3838
height: 2rem; /* adjust as per your needs */
3939
margin-right: var(--ion-padding-md);
40-
border: var(--ion-color-border) 1px solid;
40+
border: var(--ion-border-width-thin) solid var(--ion-color-border);
4141
}

src/app/shared/components/text-card/text-card.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
border-radius: var(--ion-border-radius-sm);
33
box-shadow: var(--ion-box-shadow-lg);
44
overflow: hidden;
5-
background: var(--ion-color-secondary);
5+
background: var(--ion-color-surface);
66
margin: 0 0 var(--ion-padding-sm) 0;
77
}
88

src/theme/variables.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@
113113
--ion-color-text-tertiary: var(--ion-color-medium);
114114
--ion-color-border: #e0e0e0;
115115
--ion-color-border-light: #f0f0f0;
116+
--ion-color-surface: #ffffff; /* Card and surface backgrounds */
117+
118+
/* Border width tokens */
119+
--ion-border-width-thin: 1px;
120+
--ion-border-width-medium: 2px;
116121
}
117122

118123
/*
@@ -157,5 +162,6 @@
157162
--ion-color-text-tertiary: var(--ion-color-medium);
158163
--ion-color-border: #404040;
159164
--ion-color-border-light: #2a2a2a;
165+
--ion-color-surface: #1e1e1e; /* Card and surface backgrounds in dark mode */
160166
}
161167
}

0 commit comments

Comments
 (0)