Skip to content

Commit 6e46df9

Browse files
authored
[4.0] Update Bootstrap to beta 2 (#32378)
1 parent c67e920 commit 6e46df9

File tree

10 files changed

+15
-18
lines changed

10 files changed

+15
-18
lines changed

administrator/components/com_installer/tmpl/update/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
<?php endif; ?>
103103
</div>
104104
<?php if($item->isMissingDownloadKey): ?>
105-
<?php HTMLHelper::_('bootstrap.popover', 'span.hasPopover'); ?>
105+
<?php HTMLHelper::_('bootstrap.popover', 'span.hasPopover', ['trigger' => 'hover focus']); ?>
106106
<span class="badge bg-warning text-dark">
107107
<span class="hasPopover"
108108
title="<?php echo Text::_('COM_INSTALLER_DOWNLOADKEY_MISSING_LABEL') ?>"

administrator/components/com_installer/tmpl/updatesites/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Joomla\CMS\Router\Route;
1717

1818
HTMLHelper::_('behavior.multiselect');
19-
HTMLHelper::_('bootstrap.popover', 'span.hasPopover');
19+
HTMLHelper::_('bootstrap.popover', 'span.hasPopover', ['trigger' => 'hover focus']);
2020

2121
$user = Factory::getApplication()->getIdentity();
2222
$userId = $user->get('id');

layouts/joomla/button/action-button.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
use Joomla\CMS\HTML\HTMLHelper;
1111

12-
HTMLHelper::_('bootstrap.popover');
13-
1412
extract($displayData, EXTR_OVERWRITE);
1513

1614
/**
@@ -31,7 +29,7 @@
3129

3230
if ($tip)
3331
{
34-
HTMLHelper::_('bootstrap.popover', '.hasPopover');
32+
HTMLHelper::_('bootstrap.popover', '.hasPopover', ['trigger' => 'hover focus']);
3533
}
3634
?>
3735
<button type="submit" class="tbody-icon data-state-<?php echo $this->escape($value ?? ''); ?><?php echo $tip ? ' hasPopover' : ''; ?>"

layouts/joomla/button/transition-button.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
use Joomla\CMS\HTML\HTMLHelper;
1111
use Joomla\CMS\Language\Text;
1212

13-
HTMLHelper::_('bootstrap.popover');
14-
1513
extract($displayData, EXTR_OVERWRITE);
1614

1715
/**
@@ -33,7 +31,7 @@
3331

3432
if ($tip)
3533
{
36-
HTMLHelper::_('bootstrap.popover', '.hasPopover');
34+
HTMLHelper::_('bootstrap.popover', '.hasPopover', ['trigger' => 'hover focus']);
3735
}
3836
?>
3937
<?php if ($only_icon || $disabled) : ?>
@@ -51,7 +49,7 @@
5149
<?php endif; ?>
5250
</div>
5351
<?php else : ?>
54-
<?php HTMLHelper::_('bootstrap.popover', '.hasPopover'); ?>
52+
<?php HTMLHelper::_('bootstrap.popover', '.hasPopover', ['trigger' => 'hover focus']); ?>
5553
<button type="button" class="tbody-icon align-self-start me-1 data-state-<?php echo $this->escape($value ?? ''); ?> <?php echo $tip ? 'hasPopover' : ''; ?>"
5654
title="<?php echo HTMLHelper::_('tooltipText', $tipTitle ?: $title, '', 0); ?>"
5755
data-bs-content="<?php echo HTMLHelper::_('tooltipText', $tipContent, '', 0); ?>"

layouts/plugins/system/privacyconsent/label.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
// If a description is specified, use it to build a tooltip.
7171
if (!empty($description))
7272
{
73-
HTMLHelper::_('bootstrap.popover', '.hasPopover');
73+
HTMLHelper::_('bootstrap.popover', '.hasPopover', ['trigger' => 'hover focus']);
7474
$label .= ' title="' . htmlspecialchars(trim($text, ':'), ENT_COMPAT, 'UTF-8') . '"';
7575
$label .= ' data-bs-content="' . htmlspecialchars(
7676
$translateDescription ? Text::_($description) : $description,

layouts/plugins/user/terms/label.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
// If a description is specified, use it to build a tooltip.
7070
if (!empty($description))
7171
{
72-
HTMLHelper::_('bootstrap.popover', '.hasPopover');
72+
HTMLHelper::_('bootstrap.popover', '.hasPopover', ['trigger' => 'hover focus']);
7373
$label .= ' title="' . htmlspecialchars(trim($text, ':'), ENT_COMPAT, 'UTF-8') . '"';
7474
$label .= ' data-bs-content="' . htmlspecialchars(
7575
$translateDescription ? Text::_($description) : $description,

libraries/src/HTML/Helpers/Bootstrap.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,13 +318,14 @@ public static function popover($selector = '[data-bs-toggle="popover"]', $option
318318
$opt['animation'] = isset($options['animation']) ? (bool) $options['animation'] : true;
319319
$opt['container'] = isset($options['container']) ? $options['container'] : 'body';
320320
$opt['content'] = isset($options['content']) ? $options['content'] : null;
321-
$opt['delay'] = isset($options['delay']) ? (int) $options['delay'] : 0;
321+
$opt['delay'] = isset($options['delay']) ? (int) $options['delay'] : [ 'show' => 50, 'hide' => 200 ];
322322
$opt['html'] = isset($options['html']) ? (bool) $options['html'] : true;
323323
$opt['placement'] = isset($options['placement']) ? $options['placement'] : null;
324324
$opt['selector'] = isset($options['selector']) ? $options['selector'] : false;
325325
$opt['template'] = isset($options['template']) ? $options['template'] : null;
326326
$opt['title'] = isset($options['title']) ? $options['title'] : null;
327327
$opt['trigger'] = isset($options['trigger']) ? $options['trigger'] : 'click';
328+
$opt['offset'] = isset($options['offset']) ? $options['offset'] : [0, 10];
328329
$opt['fallbackPlacement'] = isset($options['fallbackPlacement']) ? $options['fallbackPlacement'] : null;
329330
$opt['boundary'] = isset($options['boundary']) ? $options['boundary'] : 'scrollParent';
330331
$opt['customClass'] = isset($options['customClass']) ? $options['customClass'] : null;

libraries/src/HTML/Helpers/Grid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ abstract class Grid
4141
public static function sort($title, $order, $direction = 'asc', $selected = '', $task = null, $newDirection = 'asc', $tip = '', $form = null)
4242
{
4343
HTMLHelper::_('behavior.core');
44-
HTMLHelper::_('bootstrap.popover', '.hasPopover');
44+
HTMLHelper::_('bootstrap.popover', '.hasPopover', ['trigger' => 'hover focus']);
4545

4646
$direction = strtolower($direction);
4747
$icon = array('arrow-up-3', 'arrow-down-3');

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@webcomponents/webcomponentsjs": "^2.5.0",
3838
"accessibility": "^3.0.10",
3939
"awesomplete": "1.1.5",
40-
"bootstrap": "^5.0.0-beta1",
40+
"bootstrap": "^5.0.0-beta2",
4141
"choices.js": "^9.0.1",
4242
"chosen-js": "^1.8.7",
4343
"codemirror": "^5.59.2",

0 commit comments

Comments
 (0)