Skip to content
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

Added CSS files for every Component with Styles #36

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Aonepathan
Copy link

Style properties have been extracted from every component and been placed in corresponding CSS files within the package.

Please let me know if this needs to be changed or was off the mark with the issue!

Closes #35

@cmckni3 cmckni3 self-requested a review November 1, 2017 00:13
Copy link
Collaborator

@cmckni3 cmckni3 left a comment

Choose a reason for hiding this comment

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

The selectors should actually be :host like they were previously. I would actually prefer adding a class with a super-table prefix for library CSS.

src/styles.scss Outdated Show resolved Hide resolved
src/app/demo.component.css Outdated Show resolved Hide resolved
@cmckni3
Copy link
Collaborator

cmckni3 commented Nov 1, 2017

I appreciate the PR, @Aonepathan. Can you make the changes I have outlined? After that I will merge and update the build process.

src/app/demo.component.css Show resolved Hide resolved
src/lib/dummy-rows.component.css Outdated Show resolved Hide resolved
src/lib/enum-filter.component.css Outdated Show resolved Hide resolved
src/lib/super-table-body.component.css Outdated Show resolved Hide resolved
src/lib/super-table-head.component.css Outdated Show resolved Hide resolved
src/lib/super-table.component.css Outdated Show resolved Hide resolved
src/lib/table-cell.component.css Outdated Show resolved Hide resolved
src/lib/table-header.component.css Outdated Show resolved Hide resolved
src/lib/text-filter.component.css Outdated Show resolved Hide resolved
@Aonepathan
Copy link
Author

@cmckni3 I've made the requested changes, please let me know if the :host pseudo-class should be included in the component.ts files. I went ahead with your recommendation to update host as the class name instead and inserted in the template as a div

@cmckni3
Copy link
Collaborator

cmckni3 commented Nov 2, 2017

I see some issues with the CSS not being applied to components under SuperTableComponent. I think all of the CSS needs to go into a single file to be bundled into the library and included in applications.

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

Successfully merging this pull request may close these issues.

Extract CSS out of components
2 participants