Skip to content

Commit

Permalink
Merge pull request #57 from silinternational/develop
Browse files Browse the repository at this point in the history
Release 2.5.0
  • Loading branch information
hobbitronics authored Aug 3, 2021
2 parents a6a9045 + 533cca3 commit eaa8e17
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [2.5.0](https://github.com/silinternational/ui-components/releases/tag/v2.5.0) - 2021-08-03

### Added
- slot to TopAppBar in Drawer

### Changed
- centered and raised menu button in Drawer

## [2.4.0](https://github.com/silinternational/ui-components/releases/tag/v2.4.0) - 2021-08-03

### Added
Expand Down
6 changes: 4 additions & 2 deletions components/mdc/Drawer/Drawer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ main {
<span class="grow-1" />
{:else if !hide}
{#if url && button}
<Button prependIcon={button} {url} >{label}</Button>
<Button class="m-1" raised prependIcon={typeof button == 'string' ? button : null} {url} >{label}</Button>
{:else if url}
<a class="mdc-list-item" class:mdc-list-item--activated={isMenuItemActive(currentUrl, url)} href={url}
aria-current={isMenuItemActive(currentUrl, url) ? "page" : null} tabindex={i === 0 ? 0 : undefined}>
Expand All @@ -117,7 +117,9 @@ main {

<div class="app-content relative">
{#if hasTopAppBar}
<TopAppBar dense fixed bgColorIsVariant on:nav={toggleDrawer} navIconBreakpointClass={!dismissible && "hide-above-tablet"} />
<TopAppBar dense fixed bgColorIsVariant on:nav={toggleDrawer} navIconBreakpointClass={!dismissible && "hide-above-tablet"} >
<slot name="TopAppBar"/>
</TopAppBar>
{/if}

<main class="h-100">
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@silintl/ui-components",
"version": "2.4.0",
"version": "2.5.0",
"description": "Reusable Svelte components for some internal applications",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit eaa8e17

Please sign in to comment.