Skip to content

Commit

Permalink
feat(text-area): setup theme/light option
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebritor committed Apr 15, 2023
1 parent 041ed28 commit d32ab7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/CvTextArea/CvTextArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
`${carbonPrefix}--text-area`,
{
[`${carbonPrefix}--text-area--invalid`]: isInvalid,
[`${carbonPrefix}--text-area--light`]: isLight,
},
]"
v-bind="$attrs"
Expand Down Expand Up @@ -58,13 +59,15 @@ import { computed, ref, useSlots, onBeforeMount, onBeforeUpdate } from 'vue';
import { WarningFilled16 } from '@carbon/icons-vue';
import { carbonPrefix } from '../../global/settings';
import { useCvId, props as propsCvId } from '../../use/cvId';
import { useIsLight, props as propsTheme } from '../../use/cvTheme';
const props = defineProps({
helperText: { type: String, default: undefined },
invalidMessage: { type: String, default: undefined },
label: String,
modelValue: String,
...propsCvId,
...propsTheme,
});
const cvId = useCvId(props);
Expand All @@ -73,8 +76,9 @@ const cvId = useCvId(props);
const slots = useSlots();
// Data
const isInvalid = ref(false);
const isHelper = ref(false);
const isInvalid = ref(false);
const isLight = useIsLight(props);
// Computed
const errorId = computed(() => `error-${cvId.value}`);
Expand Down

0 comments on commit d32ab7f

Please sign in to comment.