yui/yui3 — pull request #1948 by drjayvee (2014-08-26 09:36:14+00:00)
Title: ButtonGroup renders as single-box widget

I've made this change to simplify buttongroup markup, especially for progressively enhanced markup.

In particular, I had problems with this setup:
```html

YUI
rocks

```
The styles are applied before the script enhances the markup, because the `yui3-buttongroup` class is already present on the `srcNode`.

After the script has run though, the markup changes to:
```html

YUI
rocks

```
Note that both the `boundingBox` and the `contentBox` have the class `yui3-buttongoup`. The `contentBox` (the original `srcNode`) shouldn't have that class anymore!

As alternatives to single-box `ButtonGroup`s, I could
* change the `srcNode`'s class to `yui3-buttongroup-content`, and change the selector accordingly.
* use an additional class (e.g. `mybuttongroup`) to make my selectors independent of ButtonGroup's rendering. (This is actually the situation I have now, but I want to simplify the code.)

These work, of course, but I much prefer the single-box solution, because it requires less knowledge about the Widget's markup and simplifies CSS selectors.

This change might break some code (js or CSS)! However, Button is still in beta, so that is acceptable, maybe?