Skip to content

Commit

Permalink
Clarify scroll buttons are pseudo-elements, and give order.
Browse files Browse the repository at this point in the history
  • Loading branch information
flackr committed Jan 30, 2024
1 parent e7d3b2e commit 78bd888
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scroll-button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Proposal

Allow the creation of interactive scroll buttons as pseudoclasses, e.g.
Allow the creation of interactive scroll buttons as pseudo-elements, e.g.

```css
.scroller {
Expand All @@ -22,6 +22,13 @@ These should be focusable, behaving as a button.
When activated, a scroll should be performed in the direction by some amount.
When it is not possible to scroll in that direction, they should be disabled.

The order of the pseudo-elements with respect to the element should be:
- block direction previous,
- inline direction previous,
- the scrolling element,
- inline direction next,
- block direction next.

## Open questions

### Amount to scroll
Expand Down

0 comments on commit 78bd888

Please sign in to comment.