Skip to content

Commit

Permalink
[v4] rollback position: absolute style for .graphiql-logo because…
Browse files Browse the repository at this point in the history
… tabs will behind logo (#3730)
  • Loading branch information
dimaMachina authored Aug 15, 2024
1 parent 167629f commit 360a038
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/serious-forks-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphiql/react': patch
'graphiql': patch
---

rollback `position: absolute` style for `.graphiql-logo` because tabs will behind logo
1 change: 1 addition & 0 deletions packages/graphiql-react/src/style/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
/* Layout */
--sidebar-width: 60px;
--toolbar-width: 40px;
--session-header-height: 38.5px;
}

@media (prefers-color-scheme: dark) {
Expand Down
5 changes: 2 additions & 3 deletions packages/graphiql/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

/* The session header containing tabs and the logo */
.graphiql-container .graphiql-session-header {
position: relative;
height: var(--session-header-height);
align-items: center;
display: flex;
padding: var(--px-8) var(--px-8) 0;
Expand All @@ -85,8 +85,7 @@ button.graphiql-tab-add {

/* The GraphiQL logo */
.graphiql-container .graphiql-logo {
position: absolute;
right: var(--px-16);
margin-left: auto;
color: hsla(var(--color-neutral), var(--alpha-secondary));
font-size: var(--font-size-h4);
font-weight: var(--font-weight-medium);
Expand Down

0 comments on commit 360a038

Please sign in to comment.