Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Use the built-in Tailwind named groups (#1179)

Olga Bulat9c7e8ed83ada
diff --git a/frontend/package.json b/frontend/package.json
index 7b6232215..9bd877b5c 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -161,7 +161,6 @@
"rimraf": "^3.0.2",
"tailwind-config-viewer": "^1.6.3",
"tailwindcss": "^3.2.4",
- "tailwindcss-labeled-groups": "^0.0.2",
"tailwindcss-rtl": "^0.9.0",
"talkback": "^3.0.1",
"ts-node": "^10.9.1",
diff --git a/frontend/src/components/VAudioTrack/VWaveform.vue b/frontend/src/components/VAudioTrack/VWaveform.vue
index 07bceae46..53ab9ec7f 100644
--- a/frontend/src/components/VAudioTrack/VWaveform.vue
+++ b/frontend/src/components/VAudioTrack/VWaveform.vue
@@ -2,7 +2,7 @@
<div
v-bind="waveformAttributes"
ref="el"
- class="waveform bg-background-var group-waveform relative overflow-hidden text-dark-charcoal focus:outline-none"
+ class="waveform bg-background-var group/waveform relative overflow-hidden text-dark-charcoal focus:outline-none"
:style="heightProperties"
:tabIndex="isTabbable && isInteractive ? 0 : -1"
:aria-disabled="!isInteractive"
@@ -12,7 +12,7 @@
<!-- Focus ring -->
<svg
v-if="isInteractive"
- class="shadow-ring-1 absolute inset-0 z-20 hidden h-full w-full group-waveform-focus:block"
+ class="shadow-ring-1 absolute inset-0 z-20 hidden h-full w-full group-focus/waveform:block"
xmlns="http://www.w3.org/2000/svg"
:viewBox="viewBox"
preserveAspectRatio="none"
@@ -85,7 +85,7 @@
<!-- Focus bar -->
<div
v-if="isInteractive && isSeeking"
- class="absolute top-0 z-20 hidden h-full flex-col items-center justify-between bg-black group-focus:flex group-waveform-focus:flex"
+ class="absolute top-0 z-20 hidden h-full flex-col items-center justify-between bg-black group-focus:flex group-focus/waveform:flex"
:style="{ width: `${barWidth}px`, left: `${progressBarWidth}px` }"
>
<div
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js
index b37182efa..521aa51b6 100644
--- a/frontend/tailwind.config.js
+++ b/frontend/tailwind.config.js
@@ -229,7 +229,6 @@ module.exports = {
require("tailwindcss-rtl"),
require("@tailwindcss/line-clamp"),
require("@tailwindcss/typography"),
- require("tailwindcss-labeled-groups")(["waveform"]),
// Focus styles
// This plugin has related stylesheets in `src/styles/tailwind.css`.
plugin(({ matchUtilities, theme }) => {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f853fdf00..52bdd125b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -116,7 +116,6 @@ importers:
seeded-rand: ^2.0.1
tailwind-config-viewer: ^1.6.3
tailwindcss: ^3.2.4
- tailwindcss-labeled-groups: ^0.0.2
tailwindcss-rtl: ^0.9.0
talkback: ^3.0.1
throttle-debounce: ^5.0.0
@@ -236,7 +235,6 @@ importers:
rimraf: 3.0.2
tailwind-config-viewer: [email protected]
tailwindcss: 3.2.4_aesdjsunmf4wiehhujt67my7tu
- tailwindcss-labeled-groups: [email protected]
tailwindcss-rtl: 0.9.0
talkback: 3.0.1
ts-node: 10.9.1_ytxlagnlbjxf7pw6smm3knvnbq
@@ -18214,14 +18212,6 @@ packages:
- supports-color
dev: true
- /tailwindcss-labeled-groups/[email protected]:
- resolution: {integrity: sha512-leOVv9h2K9WDHoXPXVBOmTJgWECVkpVFc/hjrwuqGUEtNxvRvuOtCjenu9ppY+pJtky5INJUqDCNa8pS3AbYmw==}
- peerDependencies:
- tailwindcss: ^3.0.23
- dependencies:
- tailwindcss: 3.2.4_aesdjsunmf4wiehhujt67my7tu
- dev: true
-
/tailwindcss-rtl/0.9.0:
resolution: {integrity: sha512-y7yC8QXjluDBEFMSX33tV6xMYrf0B3sa+tOB5JSQb6/G6laBU313a+Z+qxu55M1Qyn8tDMttjomsA8IsJD+k+w==}
dev: true