-
Notifications
You must be signed in to change notification settings - Fork 25
feat: revert material design color hacks #912
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| <template> | ||
| <div | ||
| ref="observerTarget" | ||
| class="oc-tile-card oc-card oc-card-default" | ||
| class="oc-tile-card oc-card" | ||
| :data-item-id="resource.id" | ||
| :class="{ | ||
| 'oc-tile-card-selected': isResourceSelected, | ||
|
|
@@ -196,8 +196,10 @@ if (!lazy) { | |
| </script> | ||
|
|
||
| <style lang="scss"> | ||
| .oc-tile-card.oc-card { | ||
| background-color: var(--oc-role-surface-container); | ||
| } | ||
|
Comment on lines
+199
to
+201
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nothing for now because it has always been like this, but having non-scoped and therefore global css instructions for the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's more to finetune on the technical side 😅 At this point it might also make sense to introduce an OcCard component, which then has a color prop for defining the background-color. We sometimes need that (most of the time we don't), and when we need it it always gets hacky. |
||
| .oc-tile-card { | ||
| background-color: var(--oc-role-surface-container) !important; | ||
| box-shadow: none; | ||
| height: 100%; | ||
| display: flex; | ||
|
|
@@ -267,10 +269,10 @@ if (!lazy) { | |
| } | ||
| } | ||
| &:hover { | ||
| background-color: var(--oc-role-secondary-container) !important; | ||
| background-color: var(--oc-role-surface-container-highest); | ||
kulmann marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| &-selected { | ||
| background-color: var(--oc-role-surface-container-high) !important; | ||
| background-color: var(--oc-role-secondary-container) !important; | ||
| outline: 2px solid var(--oc-role-outline); | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.