diff --git a/layouts/partials/button.html b/layouts/partials/button.html
index 8eea3269..cecf5d8a 100644
--- a/layouts/partials/button.html
+++ b/layouts/partials/button.html
@@ -1,6 +1,6 @@
-{{ $text := trim .text " \n" -}}
-{{ if not $text -}}
- {{ errorf "Missing element text" -}}
+{{ $title := trim .title " \n" -}}
+{{ if not $title -}}
+ {{ errorf "Missing element title" -}}
{{ end -}}
{{ $state := "enabled" -}}
@@ -81,7 +81,7 @@
{{ if eq $state "active" }}data-bs-toggle="button" aria-pressed="true"{{ end }}
{{ if eq $state "inactive" }}data-bs-toggle="button" aria-pressed="false"{{ end }}
>
- {{ $text -}}
+ {{ $title -}}
{{ with $badge }}
{{ . }}
diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html
index 8a8f5e12..f3850d87 100644
--- a/layouts/shortcodes/button.html
+++ b/layouts/shortcodes/button.html
@@ -15,8 +15,8 @@
{{ $error := false }}
{{ $type := "button" -}}
-{{ $text := trim .Inner " \n" -}}
-{{ if not $text -}}
+{{ $title := trim .Inner " \n" -}}
+{{ if not $title -}}
{{ errorf "Missing inner element text: %s" .Position -}}
{{ $error = true }}
{{ end -}}
@@ -75,5 +75,5 @@
{{ end -}}
{{ if not $error }}
- {{- partial "button.html" (dict "type" $type "text" $text "size" $size "color" $color "outline" $outline "badge" $badge "label" $label "tooltip" $tooltip "href" $href "state" $state "placement" $placement) -}}
+ {{- partial "button.html" (dict "type" $type "title" $title "size" $size "color" $color "outline" $outline "badge" $badge "label" $label "tooltip" $tooltip "href" $href "state" $state "placement" $placement) -}}
{{ end }}
diff --git a/layouts/shortcodes/tooltip.html b/layouts/shortcodes/tooltip.html
index 1ec0fc25..96da1b02 100644
--- a/layouts/shortcodes/tooltip.html
+++ b/layouts/shortcodes/tooltip.html
@@ -2,7 +2,7 @@
Displays a tooltip for a link. The shortcode supports the following arguments:
"color": Optional theme color of the element, either "primary" (default), "secondary", "success",
"danger", "warning", "info", "light", or "dark".
- "title" Required title to display in the tooltip.
+ "title" Required text to display in the tooltip.
"href" Required address for the button or hyperlink.
"placement" Optional position of the tooltip: "top" (default), "bottom", "left", or "right".
-->
@@ -10,8 +10,8 @@
{{ $error := false }}
{{ $type := "link" -}}
-{{ $text := trim .Inner " \n" -}}
-{{ if not $text -}}
+{{ $title := trim .Inner " \n" -}}
+{{ if not $title -}}
{{ errorf "Missing inner element text: %s" .Position -}}
{{ $error = true }}
{{ end -}}
@@ -41,5 +41,5 @@
{{ end -}}
{{ if not $error }}
- {{- partial "button.html" (dict "type" $type "text" $text "color" $color "tooltip" $tooltip "href" $href "placement" $placement) -}}
+ {{- partial "button.html" (dict "type" $type "title" $title "color" $color "tooltip" $tooltip "href" $href "placement" $placement) -}}
{{ end }}
\ No newline at end of file