Skip to content

Update threshold input name to match model - #3822

Merged
jbrooksuk merged 2 commits into
cachethq:2.4from
craigballinger:fix-threshold-update
Oct 18, 2019
Merged

Update threshold input name to match model#3822
jbrooksuk merged 2 commits into
cachethq:2.4from
craigballinger:fix-threshold-update

Conversation

@craigballinger

Copy link
Copy Markdown

This should resolve #3795

@accesslint accesslint Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are accessibility issues in these changes.

<div class="form-group">
<label for="metric-places">{{ trans('forms.metrics.threshold') }}</label>
<input type="number" min="0" max="10" name="metric[threshold]" value="{{ Binput::old('metric.threshold', $metric->threshold) }}" class="form-control" required>
<input type="number" min="0" max="10" name="threshold" value="{{ Binput::old('metric.threshold', $metric->threshold) }}" class="form-control" required>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there's a label missing for this input. That makes it hard for people using screen readers or voice control to use the input.

@accesslint accesslint Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃憦 You fixed the issue(s)! Great work.

@jbrooksuk
jbrooksuk merged commit d7fd5be into cachethq:2.4 Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metrics - can't change "How many minutes of threshold between metric points?"

2 participants