camptocamp/openlayers — comment on commit f5563bd9d463a7b09d582c27ab12f5bfcbd633d8
File: examples/accessible-panel.js line 25
By jorix:

Adding these two lines here the example works correctly in all browsers.

```
textSpan.className = "olAlphaImg";
iconSpan.className = "olAlphaImg";
```

but...

- - -

@ahocevar: Thinking about `Events/buttonclick.js' ...

If the buttons are more complex with children's children, then this would not work. It could be a class `olButtonChild` to indicate it should go to find the father and so on until find `olButton` or null element.

I tested locally this proposal without problems. Additionally `Control.Panel` could add this class to the children of the buttons recursively. What you think?