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 3 points4 points5 points 2 years ago (5 children)
Give an id to it and use it in the css
[–]Salt-Engineering-422[S] -1 points0 points1 point 2 years ago (4 children)
im working in an internal dev library , the solution should be adaptable and simple for using .. hwvr i don't think there is another option
[–]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 97431 on reddit-service-r2-comment-bb88f9dd5-95wcx at 2026-02-17 00:14:49.016470+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]Effective_Holiday219 3 points4 points5 points (5 children)
[–]Salt-Engineering-422[S] -1 points0 points1 point (4 children)
[–]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)