Skip to content

Commit

Permalink
Dang-1868/ loading indicator transparent bg (#389)
Browse files Browse the repository at this point in the history
* make loading indicator bg transparent, add paper bg to stories to demo it

* package version & changelog

* change stories to have one with and one without background

* cleanup
  • Loading branch information
Mrtly committed Jan 6, 2023
1 parent 616beb0 commit a91a8d8
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## v2.0.0-beta.27

### Features

changes the `LoadingIndicator` background color to transparent

## v2.0.0-beta.26

### Bug fixes
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": "@lob/ui-components",
"version": "2.0.0-beta.26",
"version": "2.0.0-beta.27",
"engines": {
"node": ">=14.18.2",
"npm": ">=8.3.0"
Expand Down
17 changes: 15 additions & 2 deletions src/components/LoadingIndicator/LoadingIndicator.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,26 @@ export default {

const Template = (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { LoadingIndicator },
components: { LoadingIndicator },
setup: () => ({ args }),
template: '<loading-indicator></loading-indicator>'
template: '<loading-indicator/>'
});

export const Primary = Template.bind({});

const TemplateWithBackground = (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { LoadingIndicator },
setup: () => ({ args }),
template: `
<div style="margin:auto; background-color: #f7f5fa; padding: 2em;">
<loading-indicator/>
</div>
`
});

export const WithBackground = TemplateWithBackground.bind({});

const dataPresent = false;

const AfterContentLoadedTemplate = (args, { argTypes }) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoadingIndicator/LoadingIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {

<style lang="scss" scoped>
.loading-gif {
background: #fff url(https://s3.us-west-2.amazonaws.com/public.lob.com/sites/spinner-medium.svg) no-repeat center;
background: transparent url(https://s3.us-west-2.amazonaws.com/public.lob.com/sites/spinner-medium.svg) no-repeat center;
background-size: 24px 24px;
width: 100%;
height: 50px;
Expand Down

0 comments on commit a91a8d8

Please sign in to comment.