Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(material/autocomplete): apply theme of parent form field to panel #25983

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

zarend
Copy link
Contributor

@zarend zarend commented Nov 15, 2022

Apply the theme of the autocomplete's parent form field to its panel. Fix issue where theme color only applies to the input, and does not affect the panel.

@zarend zarend force-pushed the autocomplete-theme-color branch from 862c1de to a9b34c9 Compare November 15, 2022 21:54
@zarend
Copy link
Contributor Author

zarend commented Nov 15, 2022

@crisbeto I've responded to PR comments, and this is ready for your eyes again 👀

Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -122,6 +123,14 @@ export abstract class _MatAutocompleteBase
}
_isOpen: boolean = false;

/** Sets the theme color of the panel. @docs-private */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: put jsdoc tag at beginning of the line:
@docs-private Sets the theme color of the panel.

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zarend zarend force-pushed the autocomplete-theme-color branch from a9b34c9 to e6f1045 Compare November 16, 2022 16:37
@zarend zarend added the action: merge The PR is ready for merge by the caretaker label Nov 16, 2022
Apply the theme of the autocomplete's parent form field to its panel.
Fix issue where theme color only applies to the input, and does not
affect the panel.
@zarend zarend force-pushed the autocomplete-theme-color branch from e6f1045 to 4f55dae Compare November 17, 2022 18:52
@zarend
Copy link
Contributor Author

zarend commented Nov 17, 2022

Fixed crash when formField is null 🤦 .

@zarend
Copy link
Contributor Author

zarend commented Nov 17, 2022

I sent out #26009 to improve typing to help prevent further mistakes when injected properties are null.

@zarend zarend merged commit 44657e2 into angular:main Nov 18, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: material/autocomplete area: theming target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants