Ocean-Industries-Concept-Lab / openbridge-webcomponents

Apache License 2.0
22 stars 7 forks source link

Richbutton info parameter not connected in react library #149

Open OlaHyke opened 3 months ago

OlaHyke commented 3 months ago

Hi, Expected results: Setting info parameter to 'true' for RichButton object will disable mouse over effect

Actual result: Setting info parameter to 'true' for RichButton object does not disable mouse over effect

tibnor commented 3 months ago

Hi @OlaHyke

I'm not sure if I understand you correctly. What do you mean by "mouse over effect"? Are you thinking of styling or event handler?

I tried this:

      <ObcRichButton size="single-line" info>
        <div slot="label">React Demo</div>
      </ObcRichButton>

That make it show in info-mode. (Alternatively use info={true}.) The cursor is in default mode. But the event handler is still triggered on clicks.

Can you make a minimal example for me to test?

OlaHyke commented 2 months ago

Hi @tibnor , I was expecting the background color of the element to be static when info is enabled. But on my side it still changes color when I hover the mouse over it: image edit: seems like the gif animation isnt loading but it would have shown that the background color of the element becomes brighter when the mouse is over the element