Closed lee-chase closed 5 years ago
Alternatively, the input field could be set to required and :valid or :invalid checked.
@asudoh is ::placeholder-shown
pseudo class fine to target? Edge does not support it but Chromium based Edge is on the horizon
@emyarod Your question reminds me of IE... What happens with IE?
@asudoh seems it's supported in IE 10+ with a prefix
On a slightly more fundamental level, what is the purpose of having less padding when the input value is empty? Should the CSS not simply be
.bx--list-box__field .bx--text-input { padding-right: 4.5rem; }
fixed padding regardless of whether or not the input field is populated is certainly an option to consider, but I believe the original intent was to account for the "clear input field" button being inserted and removed
@asudoh seems it's supported in IE 10+ with a prefix
OK sounds that autoprefixer will take care of that for us! 😉
2983 What package(s) are you using?
Creating @carbon/vue issue is with styling for combo box based on an input's value attribute.
carbon-components
Detailed description
The ComboBox has css targetting the text input value attribute. Relying on the value attribute to be the same as the dom node value property is an outdated way of achieving this, which requires extra work in frameworks that have do not mirror these two values automatically.
CSS should target :placeholder-shown
https://developer.mozilla.org/en-US/docs/Web/CSS/:placeholder-shown
Steps to reproduce the issue
Additional information