I can associate multiple paper-radio-button
s within a group by having the buttons be direct children of a paper-radio-group
.
<paper-radio-group selected="{{someProperty}}">
<paper-radio-button name="foo">Foo</paper-radio-button>
<paper-radio-button name="bar">Bar</paper-radio-button>
<paper-radio-button name="baz">Baz</paper-radio-button>
</paper-radio-group>
However, if I wrap one of the paper-radio-button
s with a div like this, it loses association with the group (so one could select both that wrapped button and one of the others). This is a problem because I want to give that button a tooltip.
<paper-radio-group selected="{{someProperty}}">
<paper-radio-button name="foo">Foo</paper-radio-button>
<paper-radio-button name="bar">Bar</paper-radio-button>
<div>
<paper-radio-button name="baz">Baz</paper-radio-button>
<paper-tooltip>Tooltip text for baz.</paper-tooltip>
</div>
</paper-radio-group>
I tried using the for
attribute of paper-tooltip, but that doesn't make the tooltip only appear when that specific button is hovered over.
How could I associate a paper-radio-button
with a paper-radio-group
without having the button be a direct child?