Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up HTML markup for dashboard widget #235

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

stklcode
Copy link
Contributor

@stklcode stklcode commented Nov 3, 2022

  • remove redundant for/id attributes from wrapped <label> tags
    The <input elements are are wrapped <label>, so the association is clear and no for/id mapping is required.
  • use
    instead of as wrapper around settings
    For valid HTML the <fieldset> should have a <legend> element. We might move the headline (<h3>) into the legend, but actually we only have one set of fields in the form, so additional semantic grouping is not necessary.
  • do not close tags
    We close the tags for number inputs, but not for checkboxes. Let's use the same way for all inputs.
  • add type attribute to refresh button
    Type attribute is required. All browsers tested seem to assume "submit" by default (otherwise the mechanism would not work), but we should make it explicit.

@stklcode stklcode added this to the 1.8.4 milestone Nov 4, 2022
* remove redundant for/id attributes from wrapped <label> tags
* use <div> instead of <fieldset> as wrapper around settings
* do not close <input> tags
* add type attribute to refresh button
@stklcode stklcode force-pushed the fix/clean-widget-markup branch from 6cc04d4 to 7c3d969 Compare November 4, 2022 17:33
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@Zodiac1978 Zodiac1978 left a comment

Choose a reason for hiding this comment

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

LGTM!

@stklcode stklcode merged commit d294483 into develop Nov 4, 2022
@stklcode stklcode deleted the fix/clean-widget-markup branch November 4, 2022 17:41
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.

2 participants