mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
19 stars 23 forks source link

[ic-toggle-button-group] props don't seem to be passed down correctly to toggle button #2017

Open GCHQ-Developer-530 opened 2 weeks ago

GCHQ-Developer-530 commented 2 weeks ago

Summary of the bug

When setting many of the props on toggle button group, they seem to have no affect on the toggle buttons within the group, when they should.

Using the playground example, it seems that appearance and disabled set the outer border of the toggle button group, but the text remains the same so can't be passing down correctly to toggle button.

Full width seems to work.

Everything else (loading, variant, size etc.) doesn't seem to do anything at all.

🪜 How to reproduce

Tell us the steps to reproduce the problem:

  1. Go to toggle button group playground example (should be done when #1970 is complete)
  2. Toggle any of the props related to toggle button group
  3. See the error
Screenshot 2024-06-18 at 08 10 35

🧐 Expected behaviour

Anything that we'd expect to be passed down, should be passed down and have an affect on toggle button.