Skip to content

Commit

Permalink
Update legend.js
Browse files Browse the repository at this point in the history
  • Loading branch information
huggla authored Mar 26, 2024
1 parent 338cd0c commit ce7eaeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controls/legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,10 @@ const Legend = function Legend(options = {}) {
const closeButtonState = isExpanded ? 'initial' : 'hidden';
closeButton = Button({
cls: 'icon-smaller small round grey-lightest',
style: {
'vertical-align': 'bottom',
'margin-bottom': '4px'
}
icon: '#ic_close_24px',
state: closeButtonState,
validStates: ['initial', 'hidden'],
Expand Down

0 comments on commit ce7eaeb

Please sign in to comment.