Skip to content

Commit

Permalink
feat(core): add default component mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed May 24, 2023
1 parent 18a600a commit dbecd00
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
15 changes: 15 additions & 0 deletions packages/core/scss/mixins/shadow-dom/_component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* SPDX-FileCopyrightText: 2023 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
@mixin ix-component() {
*,
*::after,
*::before {
box-sizing: border-box;
}
}
8 changes: 4 additions & 4 deletions packages/core/scss/mixins/shadow-dom/_hover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
* LICENSE file in the root directory of this source tree.
*/
@mixin ghost-hover-pressed {
:host:not(.disabled):not(:disabled).hover,
:host:not(.disabled):not(:disabled):hover {
:host(:not(.disabled):not(:disabled).hover),
:host(:not(.disabled):not(:disabled):hover) {
background-color: var(--theme-ghost--background--hover);
}

:host:not(.disabled):not(:disabled).active,
:host:not(.disabled):not(:disabled):active {
:host(:not(.disabled):not(:disabled).active),
:host(:not(.disabled):not(:disabled):active) {
background-color: var(--theme-ghost--background--active);
}
}

0 comments on commit dbecd00

Please sign in to comment.