Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Adopt @skyux/theme #1930

Merged
merged 12 commits into from
Aug 24, 2018
Merged

Adopt @skyux/theme #1930

merged 12 commits into from
Aug 24, 2018

Conversation

Blackbaud-SteveBrush
Copy link
Member

@Blackbaud-SteveBrush Blackbaud-SteveBrush commented Aug 22, 2018

I decided to name the “internal” SCSS folder _compat, much like RxJS’s new rxjs-compat library. My reasoning is that it keeps existing component style sheets as-is, but it communicates that it’s not ideal and should be removed at some point. I’m adding this to the top of component’s SCSS files:

@import "~@skyux/theme/scss/mixins";
@import "~@skyux/theme/scss/_compat/mixins";

Here is the @skyux/theme repo: https://github.com/blackbaud/skyux-theme

@codecov-io
Copy link

codecov-io commented Aug 22, 2018

Codecov Report

Merging #1930 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1930   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files         416     416           
  Lines        8757    8757           
  Branches     1292    1292           
======================================
  Hits         8757    8757

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b690d11...53edb5f. Read the comment docs.

@Blackbaud-SteveBrush Blackbaud-SteveBrush changed the title Added @skyux/theme Adopt @skyux/theme Aug 23, 2018
@@ -18,7 +18,7 @@
(mousedown)="onMouseDown($event)">
</button>

<div class="sky-flyout-header" #flyoutHeader>
<div class="sky-flyout-header sky-padding-squish-large" #flyoutHeader>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not seeing the .css declaration for sky-padding-squish-large. Am I missing something?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great observation! Global CSS class names are provided by @skyux/theme. See: https://github.com/blackbaud/skyux-theme/blob/master/src/app/public/styles/_sizing.scss#L21-L23

Copy link
Member

@Blackbaud-TrevorBurch Blackbaud-TrevorBurch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from what I know about everything

}

.sky-grid-row {
@include sky-border(row, bottom);

&:nth-child(odd) {
background-color: $sky-grid-odd-background-color;
background-color: $sky-color-gray-01;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also contain the !default property? I noticed the old style you're replacing had that...
Or is that a complie-time sass thing? Just wanted to ask just in case.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct, it is a build-time feature of SASS. It's usually added when assigning SASS variables. In this case, it's not needed.

Copy link
Contributor

@Blackbaud-AlexKingman Blackbaud-AlexKingman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants