Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Refactor and document OcStar(Toggle) #525

Merged
merged 1 commit into from
Nov 4, 2019

Conversation

marcus-herrmann
Copy link
Contributor

What's in this PR

  • Simplification of OcStar
  • New scss helper function for "raw" buttons
  • New: OcStarToggle component as a button role="switch" conveying its state with `aria-checked="true|false"

OcStarToggle as a replacement for OcSwitch

In ODS OcSwitch is an image that reacts to a toggle button, but is not the toggle button itself. OcStarToggle matches Phoenix's current implementation of the star being the interactive control (alas, not a button. But this is what this OR is for).

Relation to issues

Discussion started in this PR: #481 (comment)

Background on toggle/switch buttons:

Article by Heydon Pickering, longread

src/elements/OcStarToggle.vue Outdated Show resolved Hide resolved
@marcus-herrmann marcus-herrmann force-pushed the feature/a11y-documentation/star branch from d3b150e to 01472f2 Compare November 4, 2019 15:17
@LukasHirt LukasHirt merged commit d7d89a1 into master Nov 4, 2019
@delete-merged-branch delete-merged-branch bot deleted the feature/a11y-documentation/star branch November 4, 2019 15:23
tboerger pushed a commit that referenced this pull request Nov 4, 2019
Merge: 5cf4b0b 01472f2
Author: Lukas Hirt <[email protected]>
Date:   Mon Nov 4 16:23:24 2019 +0100

    Merge pull request #525 from owncloud/feature/a11y-documentation/star

    Refactor and document OcStar(Toggle)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants