cozy-ui 127.0.0 → 127.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [127.0.1](https://github.com/cozy/cozy-ui/compare/v127.0.0...v127.0.1) (2025-06-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Button:** Use primary light background for ghost variant ([bbe5c2e](https://github.com/cozy/cozy-ui/commit/bbe5c2e)), closes [#D2E9](https://github.com/cozy/cozy-ui/issues/D2E9)
7
+
1
8
  # [127.0.0](https://github.com/cozy/cozy-ui/compare/v126.6.0...v127.0.0) (2025-06-26)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "127.0.0",
3
+ "version": "127.0.1",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -221,11 +221,14 @@ export const makeLightNormalOverrides = theme => ({
221
221
  outlined: {
222
222
  '&:not($disabled)': {
223
223
  '&.ghost': {
224
- backgroundColor: theme.palette.background.default,
224
+ backgroundColor: alpha(theme.palette.primary.main, 0.25),
225
225
  '&:hover': {
226
- backgroundColor: darken(theme.palette.background.default, 0.05),
226
+ backgroundColor: darken(
227
+ alpha(theme.palette.primary.main, 0.25),
228
+ 0.1
229
+ ),
227
230
  '@media (hover: none)': {
228
- backgroundColor: darken(theme.palette.background.default, 0.05)
231
+ backgroundColor: alpha(theme.palette.primary.main, 0.25)
229
232
  }
230
233
  }
231
234
  },
@@ -231,7 +231,7 @@ export function makeDarkInvertedOverrides(theme: any): {
231
231
  outlined: {
232
232
  '&:not($disabled)': {
233
233
  '&.ghost': {
234
- backgroundColor: any;
234
+ backgroundColor: string;
235
235
  '&:hover': {
236
236
  backgroundColor: string;
237
237
  '@media (hover: none)': {
@@ -231,7 +231,7 @@ export function makeDarkNormalOverrides(theme: any): {
231
231
  outlined: {
232
232
  '&:not($disabled)': {
233
233
  '&.ghost': {
234
- backgroundColor: any;
234
+ backgroundColor: string;
235
235
  '&:hover': {
236
236
  backgroundColor: string;
237
237
  '@media (hover: none)': {
@@ -231,7 +231,7 @@ export function makeLightInvertedOverrides(theme: any): {
231
231
  outlined: {
232
232
  '&:not($disabled)': {
233
233
  '&.ghost': {
234
- backgroundColor: any;
234
+ backgroundColor: string;
235
235
  '&:hover': {
236
236
  backgroundColor: string;
237
237
  '@media (hover: none)': {
@@ -231,7 +231,7 @@ export function makeLightNormalOverrides(theme: any): {
231
231
  outlined: {
232
232
  '&:not($disabled)': {
233
233
  '&.ghost': {
234
- backgroundColor: any;
234
+ backgroundColor: string;
235
235
  '&:hover': {
236
236
  backgroundColor: string;
237
237
  '@media (hover: none)': {
@@ -212,11 +212,11 @@ export var makeLightNormalOverrides = function makeLightNormalOverrides(theme) {
212
212
  outlined: {
213
213
  '&:not($disabled)': {
214
214
  '&.ghost': {
215
- backgroundColor: theme.palette.background.default,
215
+ backgroundColor: alpha(theme.palette.primary.main, 0.25),
216
216
  '&:hover': {
217
- backgroundColor: darken(theme.palette.background.default, 0.05),
217
+ backgroundColor: darken(alpha(theme.palette.primary.main, 0.25), 0.1),
218
218
  '@media (hover: none)': {
219
- backgroundColor: darken(theme.palette.background.default, 0.05)
219
+ backgroundColor: alpha(theme.palette.primary.main, 0.25)
220
220
  }
221
221
  }
222
222
  },