Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add utility class for the user-select property #30035

Merged
merged 5 commits into from
Feb 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions scss/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,10 @@ $utilities: map-merge(
class: font,
values: (monospace: $font-family-monospace)
),
"user-select": (
property: user-select,
values: all auto none
),
"rounded": (
property: border-radius,
class: rounded,
Expand Down
17 changes: 17 additions & 0 deletions site/content/docs/4.3/utilities/interactions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
layout: docs
title: Interactions
description: Utility classes that change how users interact with contents of a website.
group: utilities
toc: false
---

## Text selection

Change the way in which the content is selected when the user interacts with it.

{{< example >}}
<p class="user-select-all">This paragraph will be entirely selected when clicked by the user.</p>
<p class="user-select-auto">This paragraph has default select behavior.</p>
<p class="user-select-none">This paragraph will not be selectable when clicked by the user.</p>
{{< /example >}}
1 change: 1 addition & 0 deletions site/data/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
- title: Display
- title: Flex
- title: Float
- title: Interactions
- title: Overflow
- title: Position
- title: Shadows
Expand Down