Skip to content

Commit

Permalink
feat: add scroll-snap utilities
Browse files Browse the repository at this point in the history
Fixes #329
  • Loading branch information
muhammadsammy committed Dec 17, 2021
1 parent b343833 commit e7d5070
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/cli/lib/non-configurable/interactivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,28 @@ const resize = ['resize-none', 'resize', 'resize-y', 'resize-x'];

const userSelect = ['select-none', 'select-text', 'select-all', 'select-auto'];

const scrollSnap = [
// scroll snap align
'snap-start',
'snap-end',
'snap-center',
'snap-align-none',
// scroll snap stop
'snap-normal',
'snap-always',
// scroll snap type
'snap-none',
'snap-x',
'snap-y',
'snap-both',
'snap-mandatory',
'snap-proximity',
];

export default {
appearance,
pointerEvents,
resize,
userSelect,
scrollSnap,
};
3 changes: 2 additions & 1 deletion src/cli/types/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ type TInteractivityCategoryItem =
| 'userSelect'
| 'caretColor'
| 'willChange'
| 'accentColor';
| 'accentColor'
| 'scrollSnap';

type TLayoutCategoryItem =
| 'display'
Expand Down

0 comments on commit e7d5070

Please sign in to comment.