Page MenuHomePhabricator

[web] Use <a> instead of <div> in some places
ClosedPublic

Authored by michal on Oct 10 2022, 3:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 4:49 PM
Unknown Object (File)
Thu, Nov 14, 4:49 PM
Unknown Object (File)
Thu, Nov 14, 4:49 PM
Unknown Object (File)
Thu, Nov 14, 4:49 PM
Unknown Object (File)
Thu, Nov 14, 4:48 PM
Unknown Object (File)
Thu, Nov 14, 4:35 PM
Unknown Object (File)
Tue, Nov 12, 2:05 AM
Unknown Object (File)
Tue, Nov 12, 1:58 AM
Subscribers

Details

Summary

Part of ENG-843
According to the linked article that @tomek linked in the comments of the task, we should use <a> in some places (where it brings user to a new chat/ screen).

Because of these changes we no longer use the Button for the settings button, so the round variant is no longer used and could be removed.

Test Plan

Check if all changed buttons look the same. Check if the changed css classes are used anywhere else. Check if rest of the app looks the same.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul added 1 blocking reviewer(s): tomek.

Looks good at a high level, adding @tomek as blocking to take another look

tomek added inline comments.
web/chat/chat-thread-list.css
1 ↗(On Diff #17440)

I don't think we need to specify node type

web/components/button.css
76–82 ↗(On Diff #17440)

I can see that this is removed because .settingsIcon class was introduced and we no longer use Button in community-picker. It might be good to explain that in the summary. Also, this diff does three things:

  1. Replaces divs with as in a cople of places
  2. Replaces Button with a in one place
  3. Removes unused Button variant

I think it would be better to have two separate diffs, one with 1. and one with 2. and 3. (but keeping this all together also made some sense because the theme of this diff is to replace things with a). Let's keep it as it is.

This revision is now accepted and ready to land.Oct 11 2022, 4:13 AM