@data-fair/lib-common-types 1.19.2 → 1.19.3
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/package.json +1 -1
- package/theme/index.js +3 -3
package/package.json
CHANGED
package/theme/index.js
CHANGED
|
@@ -144,10 +144,10 @@ export const defaultTheme = {
|
|
|
144
144
|
};
|
|
145
145
|
export const getTextColorsCss = (colors, theme) => {
|
|
146
146
|
let css = '';
|
|
147
|
-
// by default give the text-primary color to links
|
|
147
|
+
// by default give the text-primary color to links with the "simple-link" class
|
|
148
148
|
if (colors['text-primary']) {
|
|
149
149
|
css += `
|
|
150
|
-
.v-theme--${theme} a { color: ${colors['text-primary']} }`;
|
|
150
|
+
.v-theme--${theme} a.simple-link { color: ${colors['text-primary']} }`;
|
|
151
151
|
}
|
|
152
152
|
for (const color of ['surface-inverse', 'primary', 'secondary', 'accent', 'error', 'info', 'success', 'warning', 'admin']) {
|
|
153
153
|
// create a text-color class to apply text-* color variants
|
|
@@ -160,7 +160,7 @@ export const getTextColorsCss = (colors, theme) => {
|
|
|
160
160
|
const onKey = `on-${color}`;
|
|
161
161
|
if (colors[onKey]) {
|
|
162
162
|
css += `
|
|
163
|
-
.v-theme--${theme} .bg-${color} a { color: ${colors[onKey]} }`;
|
|
163
|
+
.v-theme--${theme} .bg-${color} a.simple-link { color: ${colors[onKey]} }`;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
return css;
|