Skip to content

Commit

Permalink
Prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
myovchev committed Dec 2, 2024
1 parent 320cf78 commit 5fe8f54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
### Adds

* Adds support for dynamic focus trap in Context menus (prop `dynamicFocus`). When set to `true`, the focusable elements are recalculated on each cycle step.
* Adds option to disable `tabindex` on `AposToggle` component. A new prop `noFocus` can be set to `false` to disable the focus on the toggle button. It's enabled by default.
* Adds option to disable `tabindex` on `AposToggle` component. A new prop `disableFocus` can be set to `false` to disable the focus on the toggle button. It's enabled by default.

## 4.10.0 (2024-11-20)

Expand Down
4 changes: 2 additions & 2 deletions modules/@apostrophecms/ui/ui/apos/components/AposToggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="apos-toggle__container">
<div
class="apos-toggle__slider"
:tabindex="noFocus ? null : '0'"
:tabindex="disableFocus ? null : '0'"
:class="{'apos-toggle__slider--activated': !modelValue}"
@click="$emit('toggle')"
@keydown.stop.space="$emit('toggle')"
Expand All @@ -19,7 +19,7 @@ export default {
type: Boolean,
required: true
},
noFocus: {
disableFocus: {
type: Boolean,
default: false
}
Expand Down

0 comments on commit 5fe8f54

Please sign in to comment.