[openstreetmap/openstreetmap-website] Improve Section Divider with Reusable Component (PR #4927)

Emin Kocan notifications at github.com
Thu Jun 27 15:36:39 UTC 2024


#### Summary
This PR refactors the "hr with words" section divider into a reusable partial to address the post-merge UI review for #4455. The implementation now utilizes the `<hr>` tag for improved semantics and accessibility.

#### Changes
- Created `_section_divider.html.erb` partial for the section divider.
- Updated all instances to use the new partial for consistency and maintainability.
- Utilized the `<hr>` tag for the section divider.

#### Reference
#4773 Post-merge UI review for #4455
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4927

-- Commit Summary --

  * add _section_divider component utilizing hr tags

-- File Changes --

    M app/views/sessions/new.html.erb (16)
    A app/views/shared/_section_divider.html.erb (5)
    M app/views/users/new.html.erb (15)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4927.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4927.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4927
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4927 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240627/19e66a12/attachment-0001.htm>


More information about the rails-dev mailing list