You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regression (a behavior that used to work and stopped working in a new release)
Bug report
Enhancement
Feature request
Documentation issue or request
Description
Bug: Description of the issue you encountered_
Feature: Description of the feature. Cause and its Motivation_
Our application allows for the client to choose between light/dark mode. In dark mode, the autosuggest results shows up in the default colors. Trying to style the results with the desired colors, I am able to use the [styles] to provide a list and listItem to be injected into the markup. However, the li elements dynamically get a .focus class which statically forces the background color to #f1f1f1, which clashes with the dark mode. I have not found a way yet to dynamically react to this and override that styling.
Most of the native ionic components that I have seen used a part="value" as part of their component composition which allows us to target them in the CSS with ::part(value). I would like to request that the ul and li elements of the results be given a part each that can be targeted like this.
This would allow us to create CSS rules targeting the parts, instead of injecting the inline styling, and would allow us to react to the dynamic things, such as (for example) with ::part(item).focus {}
Version Information
ionic4-auto-complete: ^2.9.2
@angular/cli: ~9.1.0
The text was updated successfully, but these errors were encountered:
taplar
changed the title
[Feature]: Please as parts to the result ul and li elements
[Feature]: Please add parts to the result ul and li elements
Dec 9, 2020
Hey @taplar, thanks for the request. I am not too familiar with the ::part so I am not sure what to do but am certainly willing to help. Can you point me to some resources and/or another project using the concept? Or feel free to submit a PR.
jrquick17
changed the title
[Feature]: Please add parts to the result ul and li elements
[FEATURE] Please add parts to the result ul and li elements
Apr 12, 2021
I'm submitting a
Description
Our application allows for the client to choose between light/dark mode. In dark mode, the autosuggest results shows up in the default colors. Trying to style the results with the desired colors, I am able to use the
[styles]
to provide alist
andlistItem
to be injected into the markup. However, theli
elements dynamically get a.focus
class which statically forces the background color to#f1f1f1
, which clashes with the dark mode. I have not found a way yet to dynamically react to this and override that styling.Most of the native ionic components that I have seen used a
part="value"
as part of their component composition which allows us to target them in the CSS with::part(value)
. I would like to request that theul
andli
elements of the results be given a part each that can be targeted like this.This would allow us to create CSS rules targeting the parts, instead of injecting the inline styling, and would allow us to react to the dynamic things, such as (for example) with
::part(item).focus {}
Version Information
The text was updated successfully, but these errors were encountered: