@@ -3,7 +3,7 @@ import { ControlStateMixin } from '@anypoint-web-components/anypoint-control-mix
33import { ValidatableMixin } from '@anypoint-web-components/validatable-mixin/validatable-mixin.js' ;
44import '@anypoint-web-components/anypoint-dropdown/anypoint-dropdown.js' ;
55import '@anypoint-web-components/anypoint-button/anypoint-icon-button.js' ;
6- import './anypoint-dropdown-menu- icons.js' ;
6+ import { arrowDown } from './icons.js' ;
77/**
88 * Accessible dropdown menu for Anypoint platform.
99 *
@@ -174,6 +174,10 @@ export class AnypointDropdownMenu extends ValidatableMixin(ControlStateMixin(Lit
174174 transition: transform 0.12s ease-in-out;
175175 will-change: transform;
176176 color: var(--anypoint-dropdown-menu-label-color, #616161);
177+ fill: currentColor;
178+ display: inline-block;
179+ width: 24px;
180+ height: 24px;
177181 }
178182
179183 .trigger-icon.opened {
@@ -384,10 +388,9 @@ export class AnypointDropdownMenu extends ValidatableMixin(ControlStateMixin(Lit
384388 tabindex ="-1 "
385389 aria-label ="Toggles dropdown menu "
386390 class ="${ _triggerClass } "
387- ?compatibility ="${ compatibility } ">
388- < iron-icon
389- class ="trigger-icon ${ opened ? 'opened' : '' } "
390- icon ="anypoint-dropdown-menu:adm-arrow-down "> </ iron-icon >
391+ ?compatibility ="${ compatibility } "
392+ >
393+ < span class ="trigger-icon ${ opened ? 'opened' : '' } "> ${ arrowDown } </ span >
391394 </ anypoint-icon-button >
392395 </ div >
393396
@@ -408,7 +411,9 @@ export class AnypointDropdownMenu extends ValidatableMixin(ControlStateMixin(Lit
408411 @overlay-closed ="${ this . _dropdownClosed } "
409412 @overlay-opened ="${ this . _dropdownOpened } "
410413 @select ="${ this . _selectHandler } "
411- @deselect ="${ this . _deselectHandler } ">
414+ @deselect ="${ this . _deselectHandler } "
415+ @activate ="${ this . _activateHandler } "
416+ >
412417 < div slot ="dropdown-content " class ="dropdown-content ">
413418 < slot id ="content " name ="dropdown-content "> </ slot >
414419 </ div >
@@ -1173,4 +1178,8 @@ export class AnypointDropdownMenu extends ValidatableMixin(ControlStateMixin(Lit
11731178 node . removeAttribute ( 'role' ) ;
11741179 } , 1000 ) ;
11751180 }
1181+
1182+ _activateHandler ( ) {
1183+ this . close ( ) ;
1184+ }
11761185}
0 commit comments