GithubHelp home page GithubHelp logo

us-cbp / ngx-cbp-theme Goto Github PK

View Code? Open in Web Editor NEW
12.0 11.0 5.0 4.08 MB

Angular 5/6/7 library based on the CBP Theme

Home Page: https://us-cbp.github.io/ngx-cbp-theme/

License: Creative Commons Zero v1.0 Universal

JavaScript 4.15% TypeScript 65.73% HTML 15.29% SCSS 14.82%
angular-cli cbp-theme material2 cbp scss angular material typescript angular6 angular7

ngx-cbp-theme's People

Contributors

dave-r avatar yogeshgadge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ngx-cbp-theme's Issues

No longer works with Angular CLI

I'm getting a ton of "Cannot find module '@angular/core'" messages. Is it possible that this is caused by the library being built on a release candidate version? Tried cloning my-app and got similar errors.

Toggle Switches component as per cbp-theme

Material Toggle Switches look way off when look at a form. We need a new simple toggle switch where we can customize the label.. The ON and OFF contents and that provides easier model changes while providing the same styling.

material tabindex imported incorrectly causing build failures downstream

Incorrect import @angular/material/core/typings/common-behaviors/tabindex' causing issues on downstream applications.

Module not found: Error: Can't resolve '@angular/material/core/typings/common-behaviors/tabindex' in 'C:\Users\yyy\projs\ief\ief-mobile\node_modules\ngx-cbp-theme'chunk {
inlineresolve '@angular/material/core/typings/common-behaviors/tabindex' in 'C:\Users\yy\projs\ief\ief-mobile\node_modules\ngx-cbp-theme'
} inline.bundle.js, inline.bundle.js.map  Parsed request is a module (inline) 5.83 kB 
[entry] [rendered]  using description file: C:\Users\yy\projs\ief\ief-mobile\node_modules\ngx-cbp-theme\package.json (relative path: .)

Is accordian necessary?

Do we need an accordion component, or would it be better to rely on the HTML5 details/summary tags? Polyfills exist for IE support. Seems like simplicity and accessibility, using the HTML5 tags would be preferable.

Need e2e tests for each component

e2e tests are barely testing much. We need the following at the minimum:-

  • e2e for Applications Menu
  • e2e test for cbp-header - high level - responsiveness.

Simplify header

Should some of the component features of the header be abstracted out so that users can include only the ones necessary? For instance, If I don't want the Feedback link, then I simply don't include it. Some like the following?

<cbp-header>
    <cbp-apps-menu></cbp-apps-menu>
    <cbp-feedback-link></cbp-feedback-link>
    <cbp-user-menu></cbp-user-menu>
</cbp-header>

The header itself would only provide the branding and the toggle button.

bootstrap vs material

Has any thought been given to using bootstrap as the base vs material? Essentially, instead of using material2, use ngx-bootstrap? While I think the material stuff is probably nicer, it seems like cbp-theme is a bootstrap theme with changes for material. By using Material as the base, it's hard to reuse much of the cbp-theme at all. You have to redo it to make it work for material. I wonder if we used bootsrap as the base, if we'd be able to use more of the base cbp-theme.

Once cbp-theme moved to a material theme, we could then make the same change, and hopefully again be able to reuse most of the cbp-theme. Thoughts?

Use <header> for cbp-header

Can cbp-header be changed from an md-toolbar to a simple header tag? Seems like it would be more semantic as well as accessible to use the standard html5 tag. Is md-toolbar providing some sort of functionality?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.