question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

We're moving away from positioning the dropdown on top of the select. You can try our new select based on top of MDC's styles. The API and behavior is exactly the same since it shares the same base class as the current select, but the CSS will be slightly different and the dropdown is only positioned above/below. You can try it by importing `MatSelectModule` from `@angular/material-experimental/mdc-select` instead of `@angular/material/select`.

See original GitHub issue

Hello,

Any update on when the corrections to the mat-select dropdown positioning might be ready for production? I have a few teams holding off on updating from Angular Material 11 for this reason alone.

Thank you! Jeremy

We’re moving away from positioning the dropdown on top of the select. You can try our new select based on top of MDC’s styles. The API and behavior is exactly the same since it shares the same base class as the current select, but the CSS will be slightly different and the dropdown is only positioned above/below. You can try it by importing MatSelectModule from @angular/material-experimental/mdc-select instead of @angular/material/select.

_Originally posted by @crisbeto in https://github.com/angular/components/issues/23625#issuecomment-931448386_

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
crisbetocommented, Jan 19, 2022

You can install this instead which brings in all of the MDC code. https://www.npmjs.com/package/material-components-web

Also note that you’ll have to include the theme for the MDC select. There’s more info here: https://github.com/angular/components/blob/master/src/material-experimental/mdc-select/README.md

1reaction
Splaktarcommented, Jan 19, 2022

Please submit Angular Material and CDK questions here and issues here. This repo is for AngularJS Material.

I have transferred this issue to the correct repository for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MatSelect overlayDir now private when updating from Angular ...
"We're moving away from positioning the dropdown on top of the select. You can try our new select based on top of MDC's...
Read more >
[Select] Allow positioning of options beneath trigger #1247
Currently the Select menu will position the currently selected option in the list on top of the trigger. This means that depending on...
Read more >
Dropdown Default Styling - CSS-Tricks
Select (dropdown) menus are one that is particularly weird. When I say dropdown menu, I mean: <select> < ...
Read more >
box-shadow - CSS: Cascading Style Sheets - MDN Web Docs
A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color. Try it. CSS...
Read more >
Line-by-line: advanced CSS tricks for click-to-open drop-down ...
by David Piepgrass Line-by-line: advanced CSS tricks for click-to-open drop-down lists and menus For as long as I can remember, there were ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found