In one phrase
Text Selection is a Drupal module that offers a easy way to site builders to configure the text and background color of portion of a document that has been highlighted by the user (e.g., selected with the mouse or another pointing device).
Overview
Text selection implements CSS3's ::selection pseudo-element providing a way to override the browser-level or system-level text highlight color with a color of your choosing.
For example, when you select a text on a website to copy and paste it the highlighted text have a default background color and font color. Using this module you are able to modify this settings to fit to the website's visual identity.
This settings is only supported by modern browsers, but it just gets ignored by old browsers.
Usage
Usage is simple. Just enable the module and go at /admin/config/user-interface/text-selection
to set up the new background color and font color for the text selection highlight color of your website.
Requirements
You must know the hex value of the color. If you aren't familiar with this you can use any HTML Color Picker available on the web to get the converted value (eg. #000000 for Black or #FFFFFF for White).
Project information
- Module categories: Developer Tools
- 6 sites report using this module
- Created by revagomes on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.