Skip to content
Permalink
Browse files

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
4 people committed Feb 14, 2020
1 parent a9263e3 commit 7a694396c1efdc70872968b0cae311c5b373ae68
Showing with 22 additions and 0 deletions.
  1. +4 −0 scss/_utilities.scss
  2. +17 −0 site/content/docs/4.3/utilities/interactions.md
  3. +1 −0 site/data/sidebar.yml
@@ -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,
@@ -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 >}}
@@ -80,6 +80,7 @@
- title: Display
- title: Flex
- title: Float
- title: Interactions
- title: Overflow
- title: Position
- title: Shadows

0 comments on commit 7a69439

Please sign in to comment.
You can’t perform that action at this time.