-
-
Notifications
You must be signed in to change notification settings - Fork 78.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add utility class for the user-select property (#30035)
* Add utility class for the user-select property * Docs: Add new page for behavior utility classes - includes user select utility * Update and rename behaviors.md to interactions.md * Update sidebar.yml Co-authored-by: Mark Otto <otto@github.com> Co-authored-by: XhmikosR <xhmikosr@gmail.com> Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
- Loading branch information
1 parent
a9263e3
commit 7a69439
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters