Skip to content

Tooltips don't fade on mobile #9

@angrytongan

Description

@angrytongan

Tooltips don't fade on mobile. Tested on Safari on iOS.

const {
    Button,
    Tooltip
} = CUI;

const MobileButtonTooltipNoFade = {
    view: () => {
        return m('', [
            m(Tooltip, {
                content: 'this tooltip doesn\'t fade on mobile',
                trigger: m(Button, {
                    label: 'Button',
                }),
            }),
        ]);
    }
};

document.addEventListener('DOMContentLoaded', () => {
    m.route(document.body, '/', {
        '/': MobileButtonTooltipNoFade
    });
});

Not sure if this is intended behaviour or not. Also not sure on accepted behaviour (the Material guidelines say to display for 1.5 seconds).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions