Skip to content

Commit

Permalink
Merge branch 'master' into mpopov/update-bootstrap-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonoff committed Nov 16, 2021
2 parents be2959c + 350a72e commit 45e33c0
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 13 deletions.
33 changes: 31 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,47 @@

[![Node.js CI](https://github.com/IgniteUI/igniteui-webcomponents/workflows/Node.js%20CI/badge.svg)](https://github.com/IgniteUI/igniteui-webcomponents/actions/workflows/node.js.yml)
[![Coverage Status](https://coveralls.io/repos/github/IgniteUI/igniteui-webcomponents/badge.svg)](https://coveralls.io/github/IgniteUI/igniteui-webcomponents)
[![npm version](https://badge.fury.io/js/igniteui-webcomponents.svg)](https://badge.fury.io/js/igniteui-webcomponents)
[![Discord](https://img.shields.io/discord/836634487483269200?logo=discord&logoColor=ffffff)](https://discord.gg/39MjrTRqds)

[Ignite UI for Web Components](https://www.infragistics.com/products/ignite-ui-web-components) is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.

## Usage

TODO:
In order to use the Ignite UI Web Components in your application you should install the `igniteui-webcomponents` package:

```
npm install igniteui-webcomponents
```

Next you will need to import the components that you want to use. You could import one or more components using the `defineComponents` function like this:

```ts
import { defineComponents, IgcAvatarComponent, IgcBadgeComponent } from 'igniteui-webcomponents';

defineComponents(IgcAvatarComponent, IgcBadgeComponent);
```

You could also import all of the components using the `defineAllComponents` function:

```ts
import { defineAllComponents } from 'igniteui-webcomponents';

defineAllComponents();
```

Please note that importing all of the components will increase the bundle size of your application. That's why we recommend you to import only the components that you are actually using.

After the components are imported you could use them in your html:

```html
<igc-avatar initials="AZ"></igc-avatar>
<igc-badge></igc-badge>
```

## Setup

From the root folder run:
In order to run the repository locally from the root folder run:

```
npm install
Expand Down
8 changes: 4 additions & 4 deletions scripts/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"module": "index.js",
"types": "index.d.ts",
"sideEffects": [
"./components/calendar/days-view/days-view.js",
"./components/calendar/months-view/months-view.js",
"./components/calendar/years-view/years-view.js",
"./components/calendar/icon/icon.js",
"components/calendar/days-view/days-view.js",
"components/calendar/months-view/months-view.js",
"components/calendar/years-view/years-view.js",
"components/icon/icon.js",
"*.css"
],
"repository": {
Expand Down
6 changes: 5 additions & 1 deletion src/components/button/button.material.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ span[part='suffix'] {
}

.flat {
background: transparent;
color: color(secondary, 500);
background: transparent;

&.disabled {
background: transparent;
}

&::before {
opacity: 0;
Expand Down
7 changes: 1 addition & 6 deletions src/components/nav-drawer/nav-drawer-item.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { html, LitElement } from 'lit';
import { property, queryAssignedNodes, state } from 'lit/decorators.js';
import { live } from 'lit/directives/live.js';
import { partNameMap } from '../common/util';
import { styles } from './nav-drawer-item.material.css';

Expand Down Expand Up @@ -53,11 +52,7 @@ export default class IgcNavDrawerItemComponent extends LitElement {

protected render() {
return html`
<div
part="${partNameMap(this.resolvePartNames('base'))}"
.disabled="${this.disabled}"
.active="${live(this.active)}"
>
<div part="${partNameMap(this.resolvePartNames('base'))}">
<span part="icon">
<slot name="icon"></slot>
</span>
Expand Down

0 comments on commit 45e33c0

Please sign in to comment.