Skip to content

Commit 7040091

Browse files
committed
refactor(theme): seperate objects
1 parent 9ecb103 commit 7040091

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

core/src/themes/ios/default.tokens.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ export const defaultTheme: DefaultTheme = {
8787
components: {
8888
IonChip: {
8989
margin: '4px',
90-
paddingVertical: '6px',
91-
paddingHorizontal: '12px',
90+
padding: {
91+
vertical: '6px',
92+
horizontal: '12px',
93+
},
9294

9395
// Sizes
9496
size: {

core/src/themes/md/default.tokens.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ export const defaultTheme: DefaultTheme = {
9292
components: {
9393
IonChip: {
9494
margin: '4px',
95-
paddingVertical: '6px',
96-
paddingHorizontal: '12px',
95+
padding: {
96+
vertical: '6px',
97+
horizontal: '12px',
98+
},
9799

98100
// Sizes
99101
size: {

core/src/themes/themes.interfaces.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,12 @@ export type DefaultTheme = BaseTheme & {
261261
type Components = {
262262
IonChip?: {
263263
margin: string | number;
264-
paddingVertical: string | number;
265-
paddingHorizontal: string | number;
264+
265+
padding?: {
266+
vertical: string | number;
267+
horizontal: string | number;
268+
};
269+
266270
gap?: string | number;
267271
lineHeight?: string | number;
268272

0 commit comments

Comments
 (0)