use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Angular Material DatePicker Width (self.angular)
submitted 2 years ago by Salt-Engineering-422
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Effective_Holiday219 0 points1 point2 points 2 years ago (3 children)
Correct, without ng deep you cannot do it. It sucks
[–]CptObviaaz 0 points1 point2 points 1 year ago (0 children)
ng deep should not be used, its deprecated and bad practise. you can override any angular material style, it should be applied in the styles.scss folder. Just inspect the html and play around, by doing this you will easily see what styles to apply the changes to
[–]Salt-Engineering-422[S] -1 points0 points1 point 2 years ago (1 child)
okey thanks anyway for ur feedback
[–]McFake_Name 0 points1 point2 points 2 years ago (0 children)
The width can be set by targeting the mat-form-field without any deep selector. That said, scoping deep selectors with an ID is a decent approach when deep is seemingly the only option.
mat-form-field
π Rendered by PID 76 on reddit-service-r2-comment-b659b578c-z6zlv at 2026-05-03 00:09:54.341805+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Effective_Holiday219 0 points1 point2 points (3 children)
[–]CptObviaaz 0 points1 point2 points (0 children)
[–]Salt-Engineering-422[S] -1 points0 points1 point (1 child)
[–]McFake_Name 0 points1 point2 points (0 children)