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: expose avatar inputs as part of card header #4638

Merged
merged 1 commit into from
Feb 11, 2021
Merged

Conversation

droshev
Copy link
Contributor

@droshev droshev commented Feb 10, 2021

Please provide a brief summary of this pull request.

The avatar in card header doesn't allow setting icons and different sizes

BREAKING CHANGE:
The avatar in card header needs to set size

Please check whether the PR fulfills the following requirements

Documentation checklist:

@droshev droshev requested a review from a team February 10, 2021 21:33
@droshev droshev self-assigned this Feb 10, 2021
@droshev droshev added the bug Something isn't working label Feb 10, 2021
@droshev droshev added this to the Sprint 55 - Monaco milestone Feb 10, 2021
@netlify
Copy link

netlify bot commented Feb 10, 2021

Deploy preview for fundamental-ngx ready!

Built with commit 744516e

https://deploy-preview-4638--fundamental-ngx.netlify.app

@droshev droshev force-pushed the fix/card-avatar-fix branch from e7fd06e to af9c60f Compare February 11, 2021 11:49
Comment on lines +50 to +56
ngAfterContentInit(): void {
/** Add fd-card__avatar class to fd-avatar */
const avatar = this.elementRef().nativeElement.querySelector('fd-avatar');
if (avatar) {
this.renderer.addClass(avatar, 'fd-card__avatar');
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What about not having query selector, but @ContentChild? So reference to avatar class is available and s size can be added, when it's missing.

@droshev droshev force-pushed the fix/card-avatar-fix branch from af9c60f to 744516e Compare February 11, 2021 13:45
@droshev droshev merged commit 29a31ea into main Feb 11, 2021
@droshev droshev deleted the fix/card-avatar-fix branch February 11, 2021 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants