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
F3537024: D5327.id17440.diff
Wed, Dec 25, 7:51 PM
F3537019: D5327.id17710.diff
Wed, Dec 25, 7:49 PM
F3536899: D5327.id17488.diff
Wed, Dec 25, 7:26 PM
F3536839: D5327.id17729.diff
Wed, Dec 25, 7:08 PM
Unknown Object (File)
Wed, Dec 25, 8:02 AM
Unknown Object (File)
Wed, Dec 18, 10:59 AM
Unknown Object (File)
Wed, Dec 18, 10:59 AM
Unknown Object (File)
Wed, Dec 18, 10:59 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
Branch
eng843
Lint
No Lint Coverage
Unit
No Test Coverage

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

I don't think we need to specify node type

web/components/button.css
76–82

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