diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2024-09-30 18:05:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 18:05:22 +0200 |
commit | b8fff16dc4580187d26a8468ee9dc31387a3b225 (patch) | |
tree | 58d3a51480b2a046f39ebdc0c55d97ca0097e74c /tests | |
parent | 36ed9fc3b0f0ce348a360e8a10500475337368b3 (diff) | |
download | jquery-ui-b8fff16dc4580187d26a8468ee9dc31387a3b225.tar.gz jquery-ui-b8fff16dc4580187d26a8468ee9dc31387a3b225.zip |
Demos: Remove deprecated button APIs
Remove usage of deprecated button options:
* `icons`: https://jqueryui.com/upgrade-guide/1.12/#deprecated-icons-options-in-favor-of-icon-and-iconposition
* `text`: https://jqueryui.com/upgrade-guide/1.12/#deprecated-text-option-in-favor-of-showlabel
Fixes gh-2295
Closes gh-2296
Diffstat (limited to 'tests')
-rw-r--r-- | tests/visual/tooltip/tooltip.html | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/visual/tooltip/tooltip.html b/tests/visual/tooltip/tooltip.html index 9453190d7..a5e12b944 100644 --- a/tests/visual/tooltip/tooltip.html +++ b/tests/visual/tooltip/tooltip.html @@ -72,15 +72,11 @@ $( "#button1" ).button(); $( "#button2" ).button({ - icons: { - primary: "ui-icon-wrench" - } + icon: "ui-icon-wrench" }); $( "#button3, #button4" ).button({ - icons: { - primary: "ui-icon-wrench" - }, - text: false + icon: "ui-icon-wrench", + showLabel: false }); $( "#buttons" ).tooltip({ position: { |