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 ( -