-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cv-text-input-skeleton): add CvTextInputSkeleton (#1542)
* feat(cv-text-input-skeleton): add initial skeleton implementation * test(cv-text-input-skeleton): add tests * fix(cv-text-input-skeleton): use span instead of label * fix(cv-text-input-skeleton): close tag correctly * fix(cv-text-input-skeleton): remove unused controls * test(cv-text-input-skeleton): add accessibility test
- Loading branch information
1 parent
43ed9bd
commit c3469f5
Showing
4 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<template> | ||
<div :class="[`${carbonPrefix}--form-item`]"> | ||
<span | ||
v-if="!hideLabel" | ||
:class="[`${carbonPrefix}--label`, `${carbonPrefix}--skeleton`]" | ||
></span> | ||
<div | ||
:class="[`${carbonPrefix}--text-input`, `${carbonPrefix}--skeleton`]" | ||
></div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { carbonPrefix } from '../../global/settings'; | ||
defineProps({ hideLabel: { type: Boolean, default: false } }); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import CvTextInput from './CvTextInput.vue'; | ||
import CvTextInputSkeleton from './CvTextInputSkeleton.vue'; | ||
|
||
export { CvTextInput }; | ||
export { CvTextInput, CvTextInputSkeleton }; | ||
export default CvTextInput; |