source/fonts.js
// When the size list gets focus, focus on the selected size item

When the size list gets focus, focus on the selected size item
When the size list gets focus focus on the selected size item
function onSizeListFocus(e) {
    if (e.target) {
      const selected = e.target.querySelector('.selected')
      if (selected) {
        selected.focus()
      }
    }
  }
function onSizeListFocus ( e ) { if ( e . target ) { const selected = e . target . querySelector ( '.selected' ) if ( selected ) { selected . focus ( ) } } }
When the size list gets focus, focus on the selected size item
When the size list gets focus focus on the selected size item