Skip to content

Commit f875902

Browse files
committed
rename to TOOLBAR_Z_INDEX
1 parent e3f7c97 commit f875902

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/react/src/modules/guide/components/Toolbar/KnockButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Button } from "@telegraph/button";
22

3-
import { MAX_Z_INDEX } from "./shared";
3+
import { TOOLBAR_Z_INDEX } from "./shared";
44
import "./styles.css";
55

66
type Props = {
@@ -22,7 +22,7 @@ export const KnockButton = ({ onClick }: Props) => {
2222
variant="soft"
2323
data-tgph-appearance="dark"
2424
aria-label="Expand guide toolbar"
25-
style={{ zIndex: MAX_Z_INDEX }}
25+
style={{ zIndex: TOOLBAR_Z_INDEX }}
2626
>
2727
<svg
2828
width="40"

packages/react/src/modules/guide/components/Toolbar/V1/V1.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Minimize2, Undo2, Wrench } from "lucide-react";
77
import { useState } from "react";
88

99
import { KnockButton } from "../KnockButton";
10-
import { MAX_Z_INDEX } from "../shared";
10+
import { TOOLBAR_Z_INDEX } from "../shared";
1111
import "../styles.css";
1212

1313
export const V1 = () => {
@@ -46,7 +46,7 @@ export const V1 = () => {
4646
py="2"
4747
px="3"
4848
data-tgph-appearance="dark"
49-
style={{ zIndex: MAX_Z_INDEX }}
49+
style={{ zIndex: TOOLBAR_Z_INDEX }}
5050
>
5151
<Stack gap="2" align="center" direction="row">
5252
<Tag

packages/react/src/modules/guide/components/Toolbar/V2/V2.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Minimize2, Undo2 } from "lucide-react";
66
import React from "react";
77

88
import { KnockButton } from "../KnockButton";
9-
import { MAX_Z_INDEX } from "../shared";
9+
import { TOOLBAR_Z_INDEX } from "../shared";
1010
import "../styles.css";
1111

1212
import { detectToolbarParam } from "./helpers";
@@ -57,7 +57,7 @@ export const V2 = () => {
5757
top="4"
5858
right="4"
5959
style={{
60-
zIndex: MAX_Z_INDEX,
60+
zIndex: TOOLBAR_Z_INDEX,
6161
}}
6262
>
6363
{isCollapsed ? (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// 'max' z index based on max value of a signed 32-bit int
22
// Ref: https://stackoverflow.com/questions/491052/minimum-and-maximum-value-of-z-index/25461690#25461690
3-
export const MAX_Z_INDEX = 2147483647;
3+
export const TOOLBAR_Z_INDEX = 2147483647;

0 commit comments

Comments
 (0)