seas-computing / mark-one

A UI component library for building React Apps (in development)
https://seas-computing.github.io/mark-one/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Remove padding from DropdownListItem component #134

Closed natalynyu closed 2 years ago

natalynyu commented 2 years ago

The padding of the DropdownListItem was causing issues in cases where we were using a ButtonDropdownMenu in Course Planner. The click event seemed to be triggered only intermittently. Each list item of the ButtonDropdownMenu contains a ButtonDropdownMenuItem, which each have padding. With the DropdownListItem component also having padding, if the user clicked on the DropdownListItem's padding, the menu would collapse without triggering a click event on the ButtonDropdownMenuItem, causing confusion for the user. By removing the padding from the DropListItem, the user can click anywhere in the row of the menu list item to select the item.

Describe your changes

Types of changes

Checklist:

Priority:

Related Issues:

Fixes #515