Skip to content

Commit

Permalink
fix(ObjectPage): hide first section Header (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbersch authored Mar 24, 2020
1 parent 2454409 commit 7b05ab9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/main/src/components/ObjectPage/ObjectPage.jss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ const styles = {
'&::-webkit-scrollbar-corner': {
backgroundColor: ThemingParameters.sapScrollBar_TrackColor
},
'& section[id="ObjectPageSection-1"] > div[role="heading"]': {
'& section[id*="ObjectPageSection-"] > div[role="heading"]': {
display: 'none'
},
// explanation why first-child selector is not sufficient here:
// https://stackoverflow.com/questions/7128406/css-select-the-first-child-from-elements-with-particular-attribute
'& section[id*="ObjectPageSection-"] ~ section[id*="ObjectPageSection-"] > div[role="heading"]': {
display: 'block'
}
},
'@global html': {
Expand Down

0 comments on commit 7b05ab9

Please sign in to comment.