Update Progress.php
This commit is contained in:
parent
86b6ec0d73
commit
dede0982fc
@ -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' => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user