-
Notifications
You must be signed in to change notification settings - Fork 83
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
refactor(ffe-accordion): fjerner obrukt css og fikser styleint advarsel #2105
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,10 @@ | |
} | ||
|
||
.ffe-accordion-item { | ||
--icon-color: var(--ffe-v-accordion-primary-color); | ||
--icon-border-color: var(--ffe-v-accordion-primary-color); | ||
--icon-background-color: var(--ffe-v-accordion-secondary-color); | ||
|
||
margin-bottom: var(--ffe-spacing-xs); | ||
transition: margin-bottom var(--ffe-transition-duration) | ||
var(--ffe-ease-in-out-back); | ||
|
@@ -17,13 +21,10 @@ | |
border: 2px solid transparent; | ||
background-color: var(--ffe-v-accordion-secondary-color); | ||
|
||
&__heading { | ||
margin: 0; | ||
} | ||
|
||
&__heading, | ||
&__body { | ||
overflow-wrap: anywhere; | ||
margin: 0; | ||
} | ||
|
||
&__heading-button { | ||
|
@@ -38,17 +39,8 @@ | |
|
||
@media (hover: hover) and (pointer: fine) { | ||
&:hover { | ||
.ffe-accordion-item__heading-icon { | ||
transition: fill var(--ffe-transition-duration) | ||
var(--ffe-ease); | ||
color: var(--ffe-v-accordion-secondary-color); | ||
} | ||
|
||
.ffe-accordion-item__heading-icon-wrapper { | ||
transition: background-color var(--ffe-transition-duration) | ||
var(--ffe-ease); | ||
background-color: var(--ffe-v-accordion-primary-color); | ||
} | ||
--icon-color: var(--ffe-v-accordion-secondary-color); | ||
--icon-background-color: var(--ffe-v-accordion-primary-color); | ||
} | ||
} | ||
|
||
|
@@ -68,16 +60,21 @@ | |
|
||
&__heading-icon-wrapper { | ||
line-height: 0; | ||
border: 1px solid var(--ffe-v-accordion-primary-color); | ||
border: 1px solid var(--icon-border-color); | ||
border-radius: 50%; | ||
padding: var(--ffe-spacing-xs); | ||
background: var(--icon-background-color); | ||
transition: background-color var(--ffe-transition-duration) | ||
var(--ffe-ease); | ||
} | ||
|
||
&__heading-icon { | ||
&__heading-icon.ffe-icons { | ||
display: block; | ||
flex: 0 0 auto; | ||
color: var(--ffe-v-accordion-primary-color); | ||
transition: transform var(--ffe-transition-duration) | ||
var(--ffe-ease-in-out-back); | ||
color: var(--icon-color); | ||
transition: | ||
transform var(--ffe-transition-duration) var(--ffe-ease-in-out-back), | ||
color var(--ffe-transition-duration) var(--ffe-ease); | ||
} | ||
|
||
&__body { | ||
|
@@ -100,25 +97,3 @@ | |
border-color: var(--ffe-v-accordion-focus-border-color); | ||
} | ||
} | ||
|
||
.native & { | ||
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. Dom her grejerna ordner ju theme.less |
||
@media (prefers-color-scheme: dark) { | ||
.ffe-accordion-item { | ||
&__heading-icon { | ||
color: var(--ffe-v-accordion-primary-color); | ||
} | ||
|
||
@media (hover: hover) and (pointer: fine) { | ||
&:hover { | ||
.ffe-accordion-item__heading-icon { | ||
color: var(--ffe-v-accordion-secondary-color); | ||
} | ||
|
||
.ffe-accordion-item__heading-icon-wrapper { | ||
background-color: var(--ffe-v-accordion-primary-color); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Denen kan ikke ha funket. .... fill var fra svg sin tid, men byttet til color og hoper det gjør noe men vansklig og se med blotta øgat. :)