Picture of Chris Gillison
languagepicker button issue
by Chris Gillison - Monday, 11 October 2021, 9:13 AM
 

Hi all,

Framework version: 5.6.1
Languagepicker version: 4.1.1

I'm using the adapt-contrib-languagePicker. I want to add an image to each of the picker buttons, so I've added an image div to the button in languagePickerView.hbs.

<button class="btn-text {{_classes}} languagepicker__language-btn is-{{_language}} js-languagepicker-btn-click" role="button" value="{{_language}}">
      {{{compile displayName}}}
      
      <div class="languagepicker-item-graphic">
        <img src="{{_introItemGraphic.src}}" aria-hidden="true" />
      </div>
        
      </button>

By doing this, I've discovered that, for some reason, only the button background is active. If you click on either the button label or the image, nothing happens.

If you set either the label's or the image's visibility to hidden, the button behind them is working( a few images below for clarity).

Is this a CSS issue maybe?

Please help!

 




Picture of Chris Gillison
Re: languagepicker button issue
by Chris Gillison - Monday, 11 October 2021, 9:42 AM
 

UPDATE:

Clicking the text does work, provided the text isn't contained within a div (so the supplied images are a little inaccurate!)

Picture of Oliver Foster
Re: languagepicker button issue
by Oliver Foster - Monday, 11 October 2021, 9:46 AM
Picture of Chris Gillison
Re: languagepicker button issue
by Chris Gillison - Monday, 11 October 2021, 10:02 AM
 

Ha! Perfect. Sorry to be a timewaster Ollie - should've tried the latest version.

Picture of Oliver Foster
Re: languagepicker button issue
by Oliver Foster - Monday, 11 October 2021, 10:44 AM
 

Oh don't apologise. It's fine. Glad it worked.