Replace <fieldset> with <section> on show pages #2504
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes issue #2503.
Basically, the
<fieldset>
s and<legend>
s inapp/views/administrate/application/show.html.erb
app/views/fields/has_one/_show.html.erb
have been replaced by a combination of
<section>
s,<h1>
s and<nav>
s. Those new elements have then been styled so that they look exactly like the previous two.A few screenshots down here 👇
BEFORE THIS CHANGE:
Show page of an object with some grouped and ungrouped attributes.

Show page of an object with an

has_one
field and some other attributes. (Notice the overlapping of borders).AFTER THIS CHANGE:
Show page of an object with some grouped and ungrouped attributes. (Note the difference in width of the grouped block).

Show page of an object with an

has_one
field and some other attributes. (Note that there's no more overlapping).Any feedback is welcomed 😃.
PLEASE NOTE that I am not a frontend dev, if you notice something very stupid or inappropriate in this PR don't be afraid of telling me 😄.