vrimar / construct-ui

A Mithril.js UI library
https://vrimar.github.io/construct-ui
MIT License
287 stars 24 forks source link

size attribute doesn't affect RadioGroup #26

Closed angrytongan closed 4 years ago

angrytongan commented 4 years ago

The size attribute in RadioGroup doesn't appear to affect it's size.

Latest Chrome, 1.0.0 branch.

Screen Shot 2020-04-10 at 11 04 06 am


const {
    RadioGroup,

} = CUI;

const RadioGroupSize = () => {
    const xsOptions = [ 'one', 'two', 'three' ];
    const xlOptions = [ 'one', 'two', 'three' ];

    return {
        view: () => [
            m(RadioGroup, { options: xsOptions, size: 'xs', }),
            m(RadioGroup, { options: xlOptions, size: 'xl', }),
        ],
    };
};

document.addEventListener('DOMContentLoaded', () => {
    m.route(document.body, '/', {
        '/': RadioGroupSize
    });
});
vrimar commented 4 years ago

Fixed in v0.2.4.