Skip to content

Commit

Permalink
use data attributes for hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
hussam-i-am committed Nov 25, 2024
1 parent d272fba commit 35ee676
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 118 deletions.
24 changes: 23 additions & 1 deletion packages/react/src/PageHeader/PageHeader.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,28 @@
& [data-component='PH_TrailingVisual'] {
height: calc(var(--title-line-height) * 1em);
}

& [data-is-hidden-all] {
display: none;
}

& [data-is-hidden-narrow] {
@media screen and (max-width: 768px) {
display: none;
}
}

& [data-is-hidden-regular] {
@media screen and (min-width: 768px) {
display: none;
}
}

& [data-is-hidden-wide] {
@media screen and (min-width: 1440px) {
display: none;
}
}
}

.ContextArea {
Expand Down Expand Up @@ -188,7 +210,7 @@
}

.Navigation {
display: flex;
display: block;
padding-top: var(--base-size-8);
font-size: var(--text-body-size-medium, 0.875rem);
font-weight: var(--base-text-weight-light);
Expand Down
Loading

0 comments on commit 35ee676

Please sign in to comment.