@myuw-web-components/myuw-app-bar
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "@myuw-web-components/myuw-app-bar", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A material top app bar designed for use with other MyUW web components", | ||
@@ -5,0 +5,0 @@ "main": "myuw-app-bar.html", |
@@ -31,4 +31,2 @@ # `<myuw-app-bar>` | ||
app-url="" | ||
background="" | ||
color="" | ||
> | ||
@@ -38,3 +36,3 @@ </myuw-app-bar> | ||
### Configurable properties | ||
### Configurable properties via attributes | ||
@@ -45,5 +43,21 @@ - **themeName (theme-name):** Sets the theme/portal name (defaults to "MyUW") | ||
- **appUrl (app-url):** Sets then URL to go to when user clicks the app name | ||
- **background:** Sets the top bar's background color | ||
- **color:** Sets the top bar's text color (defaults to white) | ||
### Styling the app bar | ||
MyUW app bar exposes custom CSS properties so users can change some of its styles. | ||
- **--myuw-app-bar-bg:** Cahnges the background color of the app bar (default is UW-Madison red) | ||
- **--myuw-app-bar-color:** Changes the text color of the app bar (default is white) | ||
#### How to use custom CSS properties | ||
Add the following selector to your CSS: | ||
```css | ||
myuw-app-bar { | ||
--myuw-app-bar-bg: #fff; | ||
--myuw-app-bar-color: #c5050c; | ||
} | ||
``` | ||
### Configuration / child components | ||
@@ -50,0 +64,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77
16012