administrate
administrate copied to clipboard
Replace <fieldset> with <section> on show pages
This PR fixes issue https://github.com/thoughtbot/administrate/issues/2503.
Basically, the <fieldset>
s and <legend>
s in
-
app/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 😄.