Skip to content

Commit cddc97b

Browse files
committed
Fix some color mix-ups
1 parent 2364516 commit cddc97b

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [v0.2.7] - 2025-04-21
11+
12+
### Fixed
13+
- Fix some color mix-ups
14+
1015
## [v0.2.6] - 2024-11-26
1116

1217
### Changed

button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export const btnOutlineWarning = css`.btn.btn-outline-warning {
358358
border-color: currentColor;
359359
}
360360
361-
.btn.btn-outline-warning:not(${DISABLED}), .btn.btn-outline-warning:focus-visible {
361+
.btn.btn-outline-warning:hover:not(${DISABLED}), .btn.btn-outline-warning:focus-visible {
362362
background-color: var(--aegis-btn-warning-hover, ${btnWarningHover});
363363
border-color: ${yellow[7]};
364364
color: var(--aegis-color-light, ${colorLight});

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aegisjsproject/styles",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"description": "Pre-made and reusable styles for `@aegisjsproject/core`",
55
"keywords": [
66
"aegis",

properties.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export const properties = css`${Object.entries(customProperties).map(
99
}`
1010
).join('\n\n')}`;
1111

12+
// Only needed when using a bundled component - Prefer using global `@property` or `:root`
13+
export const propertiesComponent = css`:host {
14+
${Object.entries(customProperties).map(([name, { initialValue }]) => `--aegis-${name}: ${initialValue};\n`).join('\n')}
15+
}`;
1216

1317
export const propertiesLegacy = css`:root {
1418
${Object.entries(customProperties).map(([name, { initialValue }]) => `--aegis-${name}: ${initialValue};\n`).join('\n')}

theme.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export const lightTheme = lightCSS`:root:not([data-theme="dark"]) {
3535

3636
export const componentBase = css`:host {
3737
color-scheme: light dark;
38-
color: var(--aegis-color-light, ${dark});
39-
background-color: var(--aegis-bg-light, ${light});
38+
color: var(--aegis-color-light, ${light});
39+
background-color: var(--aegis-bg-light, ${dark});
4040
font-family: system-ui;
4141
}
4242
@@ -105,6 +105,6 @@ export const componentDarkTheme = darkCSS`:host(:not([theme="light"])) {
105105

106106
export const componentLightTheme = lightCSS`:host(:not([theme="dark"])) {
107107
color-scheme: light;
108-
color: var(--aegis-color-light, ${light});
109-
background-color: var(--aegis-bg-light, ${dark});
108+
color: var(--aegis-color-light, ${dark});
109+
background-color: var(--aegis-bg-light, ${light});
110110
}`;

0 commit comments

Comments
 (0)