Skip to content

Commit

Permalink
Merge pull request #6398 from nextcloud-libraries/chore/nc-fields--ic…
Browse files Browse the repository at this point in the history
…on-slot-change-note
  • Loading branch information
Antreesy authored Jan 20, 2025
2 parents 2da1fef + 161e28a commit d57a65a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ All notable changes to this project will be documented in this file.
- `NcTextArea`
- `NcTextField`
- `NcTimezonePicker`
* The leading icon slot was changed from `#default` to `#icon` in `Nc*Field` components:
- `NcInputField`
- `NcTextField`
- `NcPasswordField`
* The `exact` prop was removed. This affects the following components:
- `NcActionRouter`
- `NcAppNavigationItem`
Expand Down
2 changes: 1 addition & 1 deletion src/components/NcInputField/NcInputField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ For a list of all available props and attributes, please check the [HTMLInputEle

<!-- Leading icon -->
<div v-show="!!$slots.icon" class="input-field__icon input-field__icon--leading">
<!-- Leading material design icon in the text field, set the size to 18 -->
<!-- @slot Leading icon, set the size to 18 -->
<slot name="icon" />
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/components/NcPasswordField/NcPasswordField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default {
@trailing-button-click="togglePasswordVisibility"
@update:model-value="handleInput">
<template v-if="!!$slots.icon" #icon>
<!-- Default slot for the leading icon -->
<!-- @slot Leading icon -->
<slot name="icon" />
</template>
<template #trailing-button-icon>
Expand Down
2 changes: 1 addition & 1 deletion src/components/NcTextField/NcTextField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default {
ref="inputField"
@update:model-value="handleInput">
<template v-if="!!$slots.icon" #icon>
<!-- Default slot for the leading icon -->
<!-- @slot Leading icon -->
<slot name="icon" />
</template>

Expand Down

0 comments on commit d57a65a

Please sign in to comment.