-
Notifications
You must be signed in to change notification settings - Fork 160
style(drop-down): Adding classes for different density types #5036
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update and the check list and do not forget to update the specification.
@@ -196,6 +212,22 @@ export abstract class IgxDropDownItemBase implements DoCheck { | |||
@HostBinding('class.igx-drop-down__header') | |||
public isHeader: boolean; | |||
|
|||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop down could update its items display density via hidden input. This way items will not know about drop down. Other possible solution is to use some service to update display density of the items.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this would be better left for another PR - in order for the drop-down item to not know about it's parent, the remaining selection logic and the allowItemFocus
handling inside of the drop-down-item component will have to be abstracted in a service as well
projects/igniteui-angular/src/lib/drop-down/drop-down.common.ts
Outdated
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/select/select-positioning-strategy.ts
Outdated
Show resolved
Hide resolved
…pec, #5034 # Conflicts: # projects/igniteui-angular/src/lib/drop-down/drop-down.component.spec.ts
…on strat; # Conflicts: # projects/igniteui-angular/src/lib/drop-down/drop-down.common.ts
Closes #2960
Additional information (check all that apply):
Checklist:
feature/README.MD
updates for the feature docsREADME.MD
CHANGELOG.MD
updates for newly added functionalityng update
migrations for the breaking changes