Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(react): update the stroke of the icon of the styled chip #233

Merged
merged 6 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
22 changes: 21 additions & 1 deletion packages/react/src/components/Chip/chip.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
* Copyright (c) 2023-2024, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -32,6 +32,10 @@

.MuiChip-icon {
fill: var(--oxygen-customComponents-Chip-properties-premium-border-color);
path {
stroke: var(--oxygen-customComponents-Chip-properties-premium-border-color);
stroke-width: var(--oxygen-customComponents-Chip-properties-icon-stroke-width);
}
}

.MuiChip-label {
Expand All @@ -51,6 +55,10 @@

.MuiChip-icon {
fill: var(--oxygen-customComponents-Chip-properties-new-border-color);
path {
stroke: var(--oxygen-customComponents-Chip-properties-new-border-color);
stroke-width: var(--oxygen-customComponents-Chip-properties-icon-stroke-width);
}
}

.MuiChip-label {
Expand All @@ -70,6 +78,10 @@

.MuiChip-icon {
fill: var(--oxygen-customComponents-Chip-properties-beta-border-color);
path {
stroke: var(--oxygen-customComponents-Chip-properties-beta-border-color);
stroke-width: var(--oxygen-customComponents-Chip-properties-icon-stroke-width);
}
}

.MuiChip-label {
Expand All @@ -89,6 +101,10 @@

.MuiChip-icon {
fill: var(--oxygen-customComponents-Chip-properties-experimental-border-color);
path {
stroke: var(--oxygen-customComponents-Chip-properties-experimental-border-color);
stroke-width: var(--oxygen-customComponents-Chip-properties-icon-stroke-width);
}
}

.MuiChip-label {
Expand All @@ -108,6 +124,10 @@

.MuiChip-icon {
fill: var(--oxygen-customComponents-Chip-properties-coming-soon-border-color);
path {
stroke: var(--oxygen-customComponents-Chip-properties-coming-soon-border-color);
stroke-width: var(--oxygen-customComponents-Chip-properties-icon-stroke-width);
}
}

.MuiChip-label {
Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/models/theme.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
* Copyright (c) 2023-2024, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -135,6 +135,7 @@ interface CustomTheme {
'experimental-border-color'?: string;
'experimental-text-color'?: string;
'font-weight'?: string;
'icon-stroke-width'?: string;
'line-height'?: string;
'new-background'?: string;
'new-border-color'?: string;
Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/theme/default-theme.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2022, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
* Copyright (c) 2022-2024, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -192,6 +192,7 @@ export const generateDefaultThemeOptions = (baseTheme: Theme): RecursivePartial<
'experimental-border-color': '#8C3999',
'experimental-text-color': 'linear-gradient(93deg, #8C3999 0%, #2F1333 100%)',
'font-weight': '600',
'icon-stroke-width': '0.4',
'line-height': '20px',
'new-background': 'linear-gradient(131deg, rgba(117, 237, 161, 0.30) 28.46%, rgba(52, 146, 86, 0.30) 119.09%)',
'new-border-color': '#349256',
Expand Down
Loading