From dede0982fc92c41c2c93bbe5f730c5fb1bfb657a Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 22 Dec 2021 22:37:52 +0300 Subject: [PATCH] Update Progress.php --- src/Progress.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Progress.php b/src/Progress.php index 2edd3f9..0131524 100644 --- a/src/Progress.php +++ b/src/Progress.php @@ -166,15 +166,15 @@ class Progress extends Widget } /** - * Generates a bar + * Generates a progress bar. * @param int $percent the percentage of the bar - * @param string $label , optional, the label to display at the bar + * @param string $label optional, the label to display at the bar * @param array $options the HTML attributes of the bar * @return string the rendering result. */ protected function renderBar(int $percent, string $label = '', array $options = []): string { - $percent = (float)trim(rtrim((string)$percent, '%')); + $options = array_merge($options, [ 'role' => 'progressbar', 'aria' => [