Skip to content

Commit 92b72cb

Browse files
Merge branch 'main' into patrickhlauke-navs-tabs
2 parents 229a4af + b6cae91 commit 92b72cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

site/content/docs/5.0/components/popovers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Additionally, while it is possible to also include interactive controls (such as
130130

131131
### Options
132132

133-
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-bs-`, as in `data-bs-animation=""`.
133+
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-bs-`, as in `data-bs-animation=""`. Make sure to change the case type of the option name from camelCase to kebab-case when passing via data attributes. For example: instead of using `data-bs-customClass="beautifier"`, use `data-bs-custom-class="beautifier"`.
134134

135135
{{< callout warning >}}
136136
Note that for security reasons the `sanitize`, `sanitizeFn`, and `allowList` options cannot be supplied using data attributes.

site/content/docs/5.0/components/tooltips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Elements with the `disabled` attribute aren't interactive, meaning users cannot
157157

158158
### Options
159159

160-
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-bs-`, as in `data-bs-animation=""`.
160+
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-bs-`, as in `data-bs-animation=""`. Make sure to change the case type of the option name from camelCase to kebab-case when passing via data attributes. For example: instead of using `data-bs-customClass="beautifier"`, use `data-bs-custom-class="beautifier"`.
161161

162162
{{< callout warning >}}
163163
Note that for security reasons the `sanitize`, `sanitizeFn`, and `allowList` options cannot be supplied using data attributes.

0 commit comments

Comments
 (0)