question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Segment] - Piled Segments are not piled when on background colors

See original GitHub issue

EDIT This description was updated after better investigation.


Steps to Reproduce

  1. Create any element with a background color and sufficient padding to contain the piles.
  2. Create a piled segment within the element with the background color.

Expected Segments to appear piled. They are not piled as the ::before and ::after pseudo elements use negative z-index values which are placed beneath the background color.

Result The segment looks like a regular segment.

Testcase

http://jsfiddle.net/2mbjz1p9/

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
levithomasoncommented, Sep 6, 2016

It appears they are correct on the doc site now. Mac OSX 10.10.5 (14F1909), Chrome 52.0.2743.116 (64-bit).

However, when placed in a Column, they are still missing:

<div class="column">
  <div class="ui piled segment">
    Pellentesque habitant morbi tristique senectus.
  </div>
</div>

image

A piled segment requires the containing element to have z-index: 1. Adding this to the Column resolves the issue:

-<div class="column">
+<div class="column" style="z-index: 1;">
  <div class="ui piled segment">
    Pellentesque habitant morbi tristique senectus.
  </div>
</div>

image

1reaction
levithomasoncommented, Mar 16, 2017

I see your fiddle renders OK. I’ll double check versions and styles here and see if it is something the React docs are loading on top of SUI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use invert color with semantic-ui piled segment?
I'm playing with semantic-ui piled segment but got some trouble when trying to invert color. HTML. <div class="ui blue inverted piled ...
Read more >
Segment | Semantic UI
A segment is used to create a grouping of related content. ... Piled segments use negative z-index to format the additional pages below...
Read more >
Default label font colors has mind of its own
In a stacked bar chart - for example - Tableau smartly decides which label ... One minute I enjoyed the smart contrast between...
Read more >
registro.senescyt.gob.ec/coretics/vendor/semantic/...
... .ui.piled.segments:after, .ui.piled.segments:before, .ui.piled.segment:after, .ui.piled.segment:before { background-color: @white; visibility: visible; ...
Read more >
Segment | Fomantic-UI Docs
Piled segments use negative z-index to format the additional pages below the segment. In order for them to appear correctly, your segment's offset...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found