[FIX] website_sale: adjust custom dropdown caret
Prior to this commit, the custom dropdown caret in the `website_sale` sidebar didn't handle the "multiple" attribute, unlike the default dropdown. If we decided to add a "multiple" attribute to this element, the caret remained displayed, which created a design issue. This commit adapts the caret of this dropdown so that it works correctly when this attribute is defined. task-3702675 Part-of: odoo/odoo#150886
This commit is contained in:
@@ -80,11 +80,18 @@ option.css_not_available {
|
||||
$-arrow-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='175' height='100' fill='#000'><polygon points='0,0 100,0 50,50'/></svg>");
|
||||
|
||||
select.form-select.css_attribute_select {
|
||||
background-image: str-replace($-arrow-url, "#000", str-replace(#{$input-color}, "#", "%23"));
|
||||
background-size: 20px;
|
||||
background-position: 100% 65%;
|
||||
background-repeat: no-repeat;
|
||||
max-width: 400px;
|
||||
|
||||
&:not([multiple]):where(:not([size]), [size="1"]) {
|
||||
background-image: str-replace($-arrow-url, "#000", str-replace(#{$input-color}, "#", "%23"));
|
||||
background-size: 20px;
|
||||
background-position: 100% 65%;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
&:disabled {
|
||||
background-image: str-replace($-arrow-url, "#000", str-replace(#{$form-select-disabled-color}, "#", "%23"));
|
||||
}
|
||||
}
|
||||
}
|
||||
// In the case of a modal, we cannot rely on '$input-color' to define the color
|
||||
// of the select arrow because '$input-color' is set based on the background
|
||||
|
||||
Reference in New Issue
Block a user