Skip to content

Commit

Permalink
feat: remove colorTheme prop in React, Vue, Svelte components
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Mar 24, 2023
1 parent 870c769 commit 90ecff6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/react/shared/mixins.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { isStringProp } from './utils.js';

export function colorClasses(props) {
const { color, colorTheme, textColor, bgColor, borderColor, rippleColor, dark } = props;
const { color, textColor, bgColor, borderColor, rippleColor, dark } = props;

return {
dark,
[`color-${color}`]: color,
[`color-theme-${colorTheme}`]: colorTheme,
[`text-color-${textColor}`]: textColor,
[`bg-color-${bgColor}`]: bgColor,
[`border-color-${borderColor}`]: borderColor,
Expand Down
3 changes: 1 addition & 2 deletions src/svelte/shared/mixins.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { isStringProp } from './utils.js';

export function colorClasses(props) {
const { color, colorTheme, textColor, bgColor, borderColor, rippleColor, dark } = props;
const { color, textColor, bgColor, borderColor, rippleColor, dark } = props;

return {
dark,
[`color-${color}`]: color,
[`color-theme-${colorTheme}`]: colorTheme,
[`text-color-${textColor}`]: textColor,
[`bg-color-${bgColor}`]: bgColor,
[`border-color-${borderColor}`]: borderColor,
Expand Down
3 changes: 1 addition & 2 deletions src/vue/shared/mixins.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { isStringProp } from './utils.js';

export function colorClasses(props) {
const { color, colorTheme, textColor, bgColor, borderColor, rippleColor, dark } = props;
const { color, textColor, bgColor, borderColor, rippleColor, dark } = props;

return {
dark,
[`color-${color}`]: color,
[`color-theme-${colorTheme}`]: colorTheme,
[`text-color-${textColor}`]: textColor,
[`bg-color-${bgColor}`]: bgColor,
[`border-color-${borderColor}`]: borderColor,
Expand Down

0 comments on commit 90ecff6

Please sign in to comment.