While W3C button attributes and CSS has given straight forward combination of possible appearance of actions/buttons, not all have a "semantic" meaning for the user. There is a proposal for state sequence in colors escalation order ( see indexed palette article ).
NORMAL (default)
FOCUSED :focus css selector
SELECTED attribute on some elements like OPTION
HOVER :hover
ACTIVE :active
DISABLED attribute, not available on A element
Not all states would affect background and not on all action variations: focused is usually leaves the current appearance with outline, in ghost variation the background by default would be transparent still for accessibility reasons keeping palette changes for other states.
No comments:
Post a Comment