@data-fair/lib-common-types 1.16.2 → 1.16.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/theme/index.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-common-types",
3
- "version": "1.16.2",
3
+ "version": "1.16.4",
4
4
  "description": "Shared schemas and built type definitions in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/theme/index.js CHANGED
@@ -140,6 +140,11 @@ export const getTextColorsCss = (colors, theme) => {
140
140
  css += `
141
141
  .v-theme--${theme} .text-${color}:not(.v-btn--disabled) { color: ${colors[key]}!important; }`;
142
142
  }
143
+ const onKey = `on-${color}`;
144
+ if (colors[onKey]) {
145
+ css += `
146
+ .bg-${color} a { color: ${colors[onKey]} }`;
147
+ }
143
148
  }
144
149
  return css;
145
150
  };
@@ -336,7 +341,7 @@ export function getSiteColorsWarnings(locale, theme, authProviders) {
336
341
  for (const p of authProviders) {
337
342
  if (p.color && p.title) {
338
343
  if (!tinycolor.isReadable('#FFFFFF', p.color, readableOptions)) {
339
- warnings.push(getMessage(locale, 'readableWarning', { colorCode: '#FFFFFF', colorName: getMessage(locale, 'colors.white'), bgColorCode: p.color, bgColorName: getMessage(locale, 'colors.authProvider', { title: p.title }) }));
344
+ warnings.push(getMessage(locale, 'readableWarning', { colorCode: '#FFFFFF', colorName: getMessage(locale, 'white'), bgColorCode: p.color, bgColorName: getMessage(locale, 'authProvider', { title: p.title }) }));
340
345
  }
341
346
  }
342
347
  }