Skip to content

Commit

Permalink
chore(components/indicators): chevron split scss stylesheets (#2520)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackbaud-SandhyaRajasabeson authored Jul 18, 2024
1 parent 39a8bca commit 9c78db4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { SkyThemeComponentClassDirective } from '@skyux/theme';

/**
* Creates an accessible button that wraps the chevron icon.
* @internal
*/
@Component({
selector: 'sky-chevron',
styleUrls: ['./chevron.component.scss'],
styleUrls: [
'./chevron.default.component.scss',
'./chevron.modern.component.scss',
],
templateUrl: './chevron.component.html',
hostDirectives: [SkyThemeComponentClassDirective],
})
export class SkyChevronComponent {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@use 'libs/components/theme/src/lib/styles/mixins' as mixins;
@use 'libs/components/theme/src/lib/styles/variables' as *;

@include mixins.sky-component('default', '.sky-chevron') {
border: none;
background-color: transparent;
flex-shrink: 0;
height: $sky-context-menu-size;
margin: 0;
padding: 0;
overflow: hidden;
width: $sky-context-menu-size;
cursor: pointer;
position: relative;
vertical-align: top;

&:hover .sky-chevron-part {
border-color: darken($sky-text-color-icon-borderless, 20%);
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
@use 'libs/components/theme/src/lib/styles/mixins' as mixins;
@use 'libs/components/theme/src/lib/styles/variables' as *;

button {
background: lightblue;
}

.sky-chevron {
@include mixins.sky-component('modern', '.sky-chevron') {
border: none;
background-color: transparent;
flex-shrink: 0;
Expand Down

0 comments on commit 9c78db4

Please sign in to comment.