Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Frontend
Minds Frontend
  • Project overview
  • Repository
  • Issues 812
  • Merge Requests 54
  • CI / CD
  • Security & Compliance
  • Packages
  • Wiki
  • Snippets
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds FrontendMinds Frontend
  • Merge Requests
  • !649

Open
Opened 1 week ago by Ben Hayward@benhayward.ben
Report abuse

Adjusted dropdown menus to have a larger clickable area #2223

Let me know what you think of this approach @markeharding.

It was majorly awkward because there are multiple places that these classes are used.

image

image

Testing

Find dropdowns and check they're not broken - note some dropdowns like the discovery are horizontal.

Request to merge fix/dropdown-item-padding-2223 into master
The source branch is 28 commits behind the target branch
Open in Web IDE
Pipeline #96778150 running for 187e8368 on fix/dropdown-item-padding-2223
              Requires 3 more approvals from Devs, Deployers, and QA.
              Mark Harding
              Mark Harding
              Emiliano Balbuena
              Emiliano Balbuena
              Brian Hatchet
              Brian Hatchet
              Xander Miller
              Xander Miller
              There are merge conflicts. Resolve these conflicts or ask someone with write access to this repository to merge it locally

              Mentions #2223 (closed)

              Deletes source branch

              You can merge this merge request manually using the
              • Discussion 5
              • Commits 3
              • Pipelines 3
              • Changes 9
              0/1 thread resolved
              • Ben Hayward @benhayward.ben added MR::Awaiting Review Squad::Yellow scoped labels 1 week ago

                added scoped labels

              • Mark Harding
                Mark Harding @markeharding started a thread on an old version of the diff 6 days ago
                Last updated by Ben Hayward 1 minute ago
                src/app/common/components/dropdown/dropdown.component.scss
                92 96 border: 1px solid themed($m-grey-50);
                93 97 }
                94 98
                99 .m-dropdown--list--item {
                • Mark Harding
                  Mark Harding @markeharding · 6 days ago
                  Owner

                  why is padding not applied to bem styled .m-dropdownList__item?

                • Ben Hayward
                  Ben Hayward @benhayward.ben · 22 hours ago
                  Developer

                  Styling for the older HTML that uses the non-BEM named classes.

                  image

                • Mark Harding
                  Mark Harding @markeharding · 8 hours ago
                  Owner

                  Why are we not applying to the new class and only the old one? They should work exactly the same

                • Ben Hayward @benhayward.ben changed this line in version 2 of the diff 8 minutes ago

                  changed this line in version 2 of the diff

                • Ben Hayward
                  Ben Hayward @benhayward.ben · 2 minutes ago
                  Developer

                  Okay, well, if we're going lower, the reason it's not consistent across the site is because the li dropdown item can contain one or more elements. This doesn't work for the discovery search wherein this causes issues with the horizontal, nested lists.

                  Now, all li elements, have a nested div, which in turn contains the old li content. E.g., the li should contain a wrapper for the content.

                  In addition, some other adjustments were required to make things fit together.

                • Ben Hayward
                  Ben Hayward @benhayward.ben · 1 minute ago
                  Developer

                  The idea was more to override the padding in the nested horizontal lists used for discovery, as they're a pretty unique use-case.

                • Please register or sign in to reply
              • Mark Harding @markeharding added MR::Requires Changes scoped label and automatically removed MR::Awaiting Review label 6 days ago

                added scoped label and automatically removed label

              • Ben Hayward @benhayward.ben added 1 commit 8 minutes ago

                added 1 commit

                • d10fb49e - Fix dropdown menu click area #2223 (closed)

                Compare with previous version

              • Ben Hayward @benhayward.ben added 1 commit 5 minutes ago

                added 1 commit

                • 187e8368 - Comments left in

                Compare with previous version

              Please register or sign in to reply
              0 Assignees
              None
              None
              Milestone
              None
              Time tracking
              No estimate or time spent
              2
              Labels
              MR::Requires Changes Squad::Yellow
              Lock merge request
              Unlocked
              10
              10 participants
              user avatar
              Olivia Madrid
              user avatar
              Mark Harding
              user avatar
              Emiliano Balbuena
              user avatar
              Brian Hatchet
              user avatar
              Juan Manuel Solaro
              user avatar
              Guy Thouret
              user avatar
              Marcelo Rivera
              Reference: minds/front!649