[Segment] Add basic for segments
Enhancement or Bugfix depending on how you look at it:
When you use a basic segment (because you don't want a border) inside a horizontal segments class, you still get the border because the .ui.horizontal.segments > .segment rule takes precedence. So I recommend adding a basic.segments definition to solve the problem and maintain the same expectation even if a basic segment is wrapped by a segments element of some type.
/*-------------------
Basic
--------------------*/`
.ui.basic.segments {
background: @basicBackground;
box-shadow: @basicBoxShadow;
border: @basicBorder;
border-radius: @basicBorderRadius;
}
usage example:
<div style="background-color:black;"> <!-- because you can see the issue clearly -->
<div class="ui basic horizontal segments">
<!-- below basic will be overridden by .ui.horizontal.segments > .segment -->
<div class="ui basic segment">some content</div>
<div class="ui basic compact segment">Free radicals are bad.</div>
</div>
</div>
Adding as an issue vs pull because I'm not a CSS expert and not clear this is the best way to fix or if it might have other side effects.
I second this! Had to create my own custom css.
/* remove shadows from segment ouline, basic segment? */
.ui.no.shadow.segment {
box-shadow: none;
}
Thanks for the sugestion. We will consider this enhancement.
I looked through the "New in 2.2" page and didn't see any mention of this enhancement. Did I miss it? Or is this not going to be an enhancement after all? Thank you. :bowing_man:
Not sure why it was closed, I’ll reopen it, because there’s currently one duplicate of this issue that I’d like to reroute here. If that’s a mistake, please close both of them as rejected.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.
Available in https://fomantic-ui.com/elements/segment.html#basic