Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cards - Inverted cards can't have colors #454

Closed
etshy opened this issue Feb 2, 2019 · 4 comments
Closed

Cards - Inverted cards can't have colors #454

etshy opened this issue Feb 2, 2019 · 4 comments
Assignees
Labels
lang/css Anything involving CSS type/bug Any issue which is a bug or PR which fixes a bug
Milestone

Comments

@etshy
Copy link

etshy commented Feb 2, 2019

Bug Report

Steps to reproduce

  1. make inverted cards
  2. make color card
  3. border (box-shadow actually) are grey, not colored

Expected result

Card have colored box-shadow

Actual result

Card have grey box-shadow

Testcase

JsFiddle

Version

2.7.1

Another "problem", As you could see in the jsfiddle, with a footer, like a button, the box-shadow make a weird result (there is the grey box-shadow + colored border), it's even more visible with a colored button.

I think the card element shouldn't have box-shadow or border, and only the internal element (header/image/content/...) should have a border.
Like that the colored border of the button could be "good to see".

@lubber-de lubber-de self-assigned this Feb 2, 2019
@lubber-de lubber-de added this to the 2.7.x milestone Feb 2, 2019
@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/css Anything involving CSS labels Feb 2, 2019
@lubber-de
Copy link
Member

For now, I prepared #455 to support colors in inverted cards. Removing the box-shadow or a border overall would be a breaking change and i also do not totally agree with that 😉

@etshy
Copy link
Author

etshy commented Feb 3, 2019

I can understand that. I never was very fond of shadow or this kind of things so I don't really like box-shadow effect.

I just saw that butfor this rule : .ui.cards > .card > .buttons, .ui.card > .buttons, .ui.cards > .card > .button, .ui.card > .button in the jsfiddle, making the margin: -1px -1px instead of margin: 0 -1px make the bottom border of the card and the button overlaping. It fix a bit the "weird result" I talked about earlier.
https://jsfiddle.net/0sbn6gma/

@lubber-de
Copy link
Member

@etshy I had to do some additional testing and came up with the fix in #457 which makes sure only the bottom margin gets adjusted to keep everything else as it is (also for button groups and non inverted variants)

@y0hami y0hami closed this as completed in 8985330 Feb 5, 2019
@lubber-de
Copy link
Member

Reopening because #455 has not been merged yet (only #457 was)

@lubber-de lubber-de reopened this Feb 5, 2019
@lubber-de lubber-de added the tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build label Feb 11, 2019
@lubber-de lubber-de modified the milestones: 2.7.x, 2.7.3 Feb 11, 2019
@lubber-de lubber-de removed the tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build label Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/css Anything involving CSS type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

No branches or pull requests

2 participants