List components #31

Open
stne3960 wants to merge 57 commits from list_item into main
Owner

This PR contains multiple related components.
Addresses issues #18 #19 #20 #21 #22

Issue: The colors defined in ListCard (https://www.figma.com/design/zFYdCdtEqACZmWwfnNRNY1/Studentportalen?node-id=2591-4546) are not accurate.

This PR contains multiple related components. Addresses issues #18 #19 #20 #21 #22 _Issue: The colors defined in ListCard (https://www.figma.com/design/zFYdCdtEqACZmWwfnNRNY1/Studentportalen?node-id=2591-4546) are not accurate._
stne3960 added the
Design Review
label 2025-11-30 17:55:28 +01:00
stne3960 added 19 commits 2025-11-30 17:55:28 +01:00
stne3960 added 2 commits 2025-11-30 22:39:56 +01:00
stne3960 added 1 commit 2025-12-01 10:48:42 +01:00
Merge branch 'main' into list_item
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 5m52s
035ab0408d
stne3960 added 1 commit 2025-12-01 13:31:53 +01:00
Add component library to index, until routing is fixed
All checks were successful
Remove branch deployment from branch.dsv.su.se / cleanup (pull_request) Successful in 5s
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m34s
e51115fdfa
Author
Owner
Can be viewed on: https://studentportalen-listitem.branch.dsv.su.se/
Owner

Issue: The colors defined in ListCard (https://www.figma.com/design/zFYdCdtEqACZmWwfnNRNY1/Studentportalen?node-id=2591-4546) are not accurate.

Should be fixed now.

> _Issue: The colors defined in ListCard (https://www.figma.com/design/zFYdCdtEqACZmWwfnNRNY1/Studentportalen?node-id=2591-4546) are not accurate._ > Should be fixed now.
Owner

Comments on the Combobox (#20):

The tab/focus/keyboard-navigation should behave like this example: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-list/
Main takes:

  • Tabbing will only get focus on the text input
  • Result list is navigated by arrow keys

Other things:

  • Don't display any search results when the input field is empty
Comments on the **Combobox (#20)**: The tab/focus/keyboard-navigation should behave like this example: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-list/ Main takes: - Tabbing will only get focus on the text input - Result list is navigated by arrow keys Other things: - [x] Don't display any search results when the input field is empty
Owner

Issue: The colors defined in ListCard (https://www.figma.com/design/zFYdCdtEqACZmWwfnNRNY1/Studentportalen?node-id=2591-4546) are not accurate.

Should be fixed now.

Missed a few things. Should be fixed for real now. The implemented component needs to be updated

> > _Issue: The colors defined in ListCard (https://www.figma.com/design/zFYdCdtEqACZmWwfnNRNY1/Studentportalen?node-id=2591-4546) are not accurate._ > > > Should be fixed now. Missed a few things. Should be fixed for real now. The implemented component needs to be updated
Owner

Participant picker

  • Remove the "X selected" status text
  • After selecting an item, hide the popup search result list
**Participant picker** - [x] Remove the "X selected" status text - [x] After selecting an item, hide the popup search result list
jare2473 closed this pull request 2025-12-01 16:22:26 +01:00
jare2473 reopened this pull request 2025-12-01 16:22:30 +01:00
stne3960 added 30 commits 2025-12-02 21:55:25 +01:00
Merge branch 'main' into button-component
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 5m26s
617492a87f
Merge branch 'main' into text_input
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m25s
3d93230d9a
Add component library to index, until routing is fixed
Some checks failed
Deploy to branch.dsv.su.se / deploy (pull_request) Failing after 33s
f2a5cd9d26
Remove import
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 4m4s
32376bf9ac
Add component library to index, until routing is fixed
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m32s
67f45746ca
Add correct font
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 4m9s
5f9e62569d
Add text styles
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 5m42s
69cb86d417
Reconverted fonts
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m30s
f37e55f34d
Fix borders and text style, run prettier
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m27s
ed7fb36745
Fix merge conflict
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m32s
91f694b1c3
Add no placeholder example
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m35s
2f9dbc08aa
Merge branch 'list_item' of gitea.dsv.su.se:DMC/studentportalen into list_item
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m30s
d1d3330032
stne3960 added 1 commit 2025-12-02 23:24:30 +01:00
Make combobox behavior align better with W3C pattern. Improve focus behavior
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m31s
9e9f386871
stne3960 requested review from jare2473 2025-12-03 10:32:44 +01:00
jare2473 requested changes 2025-12-03 11:29:18 +01:00
Dismissed
jare2473 left a comment
Owner

I have updated the List Item overview and Search results

  • Update the Search result list it so that a selected item in list has a hover/focus state and is "unselectable".
  • Also, take a look at the List Card overview, and update the styling.

Other than that, it looks great!

I have updated the [List Item overview](https://www.figma.com/design/zFYdCdtEqACZmWwfnNRNY1/Studentportalen?node-id=2562-1529&t=oWWyhDbFkDrBCIzg-1) and [Search results](https://www.figma.com/design/zFYdCdtEqACZmWwfnNRNY1/Studentportalen?node-id=2570-1917&t=oWWyhDbFkDrBCIzg-1) - [ ] Update the Search result list it so that a selected item in list has a hover/focus state and is "unselectable". - [x] Also, take a look at the [List Card overview](https://www.figma.com/design/zFYdCdtEqACZmWwfnNRNY1/Studentportalen?node-id=2591-4546&t=oWWyhDbFkDrBCIzg-1), and update the styling. Other than that, it looks great!
Owner
  • Add dividing line/gap in between items in list. I have clarified it in: Search result list.
- [x] Add dividing line/gap in between items in list. I have clarified it in: [Search result list](https://www.figma.com/design/zFYdCdtEqACZmWwfnNRNY1/Studentportalen?node-id=2570-1917&t=oWWyhDbFkDrBCIzg-1).
stne3960 added 2 commits 2025-12-03 22:54:48 +01:00
Style Participant picker according to documentation
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m25s
1012b0e889
stne3960 requested review from jare2473 2025-12-04 09:07:38 +01:00
jare2473 requested changes 2025-12-04 11:14:26 +01:00
Dismissed
jare2473 left a comment
Owner

Great! But just one small thing: when navigating the list with keyboard, a selected item should also get the "focus/hover"-stateScreenshot 2025-12-04 at 11.11.06.png

Also found a bug! If starting with keyboard navigation and then using mouse (or vice versa), the list gets two separate "focus"-states - one for the mouse, one for the keyboard. The list should only have one focused element at a time.
Screenshot 2025-12-04 at 11.16.18.png

Great! But just one small thing: when navigating the list with keyboard, a selected item should also get the "focus/hover"-state![Screenshot 2025-12-04 at 11.11.06.png](/attachments/634be351-14a6-466d-8c08-d3c58b1e8bc9) Also found a bug! If starting with keyboard navigation and then using mouse (or vice versa), the list gets two separate "focus"-states - one for the mouse, one for the keyboard. The list should only have one focused element at a time. ![Screenshot 2025-12-04 at 11.16.18.png](/attachments/18351101-9979-4276-af43-d7177e17be20)
stne3960 added 1 commit 2025-12-04 11:40:07 +01:00
Focus state on selected
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 4m18s
f0ba8fe1a4
Author
Owner

Great! But just one small thing: when navigating the list with keyboard, a selected item should also get the "focus/hover"-state!

Fixed.

Also found a bug! If starting with keyboard navigation and then using mouse (or vice versa), the list gets two separate "focus"-states - one for the mouse, one for the keyboard. The list should only have one focused element at a time.

This isn't a bug, browsers allow one element to be focused (keyboard) while another is hovered (mouse). Since our hover and focus-visible styles are the same, it creates the appearance of two 'active' items. That is expected behavior.

> Great! But just one small thing: when navigating the list with keyboard, a selected item should also get the "focus/hover"-state! Fixed. > Also found a bug! If starting with keyboard navigation and then using mouse (or vice versa), the list gets two separate "focus"-states - one for the mouse, one for the keyboard. The list should only have one focused element at a time. This isn't a bug, browsers allow one element to be focused (keyboard) while another is hovered (mouse). Since our hover and focus-visible styles are the same, it creates the appearance of two 'active' items. That is expected behavior.
jare2473 approved these changes 2025-12-04 13:28:47 +01:00
jare2473 added
Code Review
and removed
Design Review
labels 2025-12-04 13:29:24 +01:00
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 4m18s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin list_item:list_item
git checkout list_item
Sign in to join this conversation.
No Reviewers
No Milestone
No project
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DMC/studentportalen#31
No description provided.