From 7668a41592567a48d68c3ed90b93a5d0a8f99cc9 Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Mon, 31 Jan 2022 12:41:20 +0330 Subject: [PATCH] specifications hover Done --- src/components/ProductTab/table/index.css | 6 ++++++ src/components/ProductTab/table/index.js | 12 +++++++----- src/router.js | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 src/components/ProductTab/table/index.css diff --git a/src/components/ProductTab/table/index.css b/src/components/ProductTab/table/index.css new file mode 100644 index 0000000..f8240a0 --- /dev/null +++ b/src/components/ProductTab/table/index.css @@ -0,0 +1,6 @@ +.specifications-li:hover div{ + background-color: rgba(25,110,192,0.2); +} +.specifications-li div{ + transition: all 0.2s; +} \ No newline at end of file diff --git a/src/components/ProductTab/table/index.js b/src/components/ProductTab/table/index.js index 39fda4a..f688760 100644 --- a/src/components/ProductTab/table/index.js +++ b/src/components/ProductTab/table/index.js @@ -1,4 +1,5 @@ -import React from "react"; +import React, { useState } from "react"; +import './index.css'; const persian = { weight: "وزن", @@ -12,17 +13,18 @@ const persian = { }; const Table = ({ specifications }) => { + return ( -