Skip to content

Commit f02c770

Browse files
committed
fix(Sponsors): remove nested containers and fix dark mode white flash
1 parent 38509ac commit f02c770

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/Sponsors/Sponsors.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import Link from "../Link/Link.jsx";
99

1010
const Sponsors = () => (
1111
<div className="absolute h-full w-[250px] ml-[-250px] mr-2.5">
12-
<div className="sticky hidden xl:flex flex-wrap justify-center items-start border-r-2 border-gray-200 my-6 px-6 pb-12 overflow-hidden bg-white dark:bg-gray-900 transition-colors duration-200 top-24">
12+
<div className="sticky hidden xl:flex flex-wrap justify-center items-start border-r-2 border-gray-200 my-6 px-6 pb-12 overflow-hidden bg-gray-100 dark:bg-gray-900 transition-colors duration-200 top-24">
1313
{/* AG Grid */}
14-
<div className="bg-white dark:bg-gray-800 shadow-lg rounded-lg m-2 transition-transform duration-200 hover:bg-gray-100 dark:hover:bg-gray-700 hover:scale-105">
14+
<div className="sticky hidden xl:flex flex-wrap justify-center items-start border-r-2 border-gray-200 dark:border-gray-700 my-6 px-6 pb-12 overflow-hidden bg-white dark:bg-gray-900 top-24">
1515
<Link to="https://www.ag-grid.com/?utm_source=webpack&utm_medium=banner&utm_campaign=sponsorship">
1616
{/* Light mode */}
1717
<img
@@ -34,7 +34,7 @@ const Sponsors = () => (
3434
</div>
3535

3636
{/* AG Charts */}
37-
<div className="bg-white dark:bg-gray-800 shadow-lg rounded-lg m-2 transition-transform duration-200 hover:bg-gray-100 dark:hover:bg-gray-700 hover:scale-105">
37+
<div className="sticky hidden xl:flex flex-wrap justify-center items-start border-r-2 border-gray-200 dark:border-gray-700 my-6 px-6 pb-12 overflow-hidden bg-white dark:bg-gray-900 top-24">
3838
<Link to="https://charts.ag-grid.com/?utm_source=webpack&utm_medium=banner&utm_campaign=sponsorship">
3939
{/* Light mode */}
4040
<img
@@ -57,7 +57,7 @@ const Sponsors = () => (
5757
</div>
5858

5959
{/* Webpack Sponsor */}
60-
<div className="bg-white dark:bg-gray-800 shadow-lg rounded-lg m-2 flex flex-col items-center transition-transform duration-200">
60+
<div className="sticky hidden xl:flex flex-wrap justify-center items-start border-r-2 border-gray-200 dark:border-gray-700 my-6 px-6 pb-12 overflow-hidden bg-white dark:bg-gray-900 top-24">
6161
<Link to="https://www.ag-grid.com/?utm_source=webpack&utm_medium=banner&utm_campaign=sponsorship">
6262
<div className="text-2xl text-gray-700 dark:text-gray-300 my-4 text-center">
6363
Datagrid and Charting for Enterprise Applications

0 commit comments

Comments
 (0)