Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Text selection

Security covered Under active development 4 sites

This module allows site builders to easily customize the text and background colors that appear when a user highlights text on the website. It uses CSS3's ::selection pseudo-element to override default browser or system highlight colors, helping to match the site's visual identity.

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).

Ask your assistant about Text selection

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Oct 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
2.x-dev Dev 8–10 Oct 9, 2023