Skip to content

Commit

Permalink
Feature/hadasfa/last ver fix 0.57 (#167)
Browse files Browse the repository at this point in the history
* css: toggle apperance when disable

* fix disable apperance

* fix toggle tests and avatar badge example

* bump ver

* fix chips tests
  • Loading branch information
Hadas Farhi authored Jul 13, 2021
1 parent 498dcb0 commit b3a33b2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monday-ui-react-core",
"version": "0.3.56",
"version": "0.3.57",
"description": "Official monday.com UI resources for application development in React.js",
"main": "dist/main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Avatar/__stories__/avatar.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "./avatar.stories.scss";

const IMG_SRC =
"https://files.monday.com/use1/photos/16447897/small/16447897-Hadas_Farhi_photo_2020_10_04_10_14_06.png?1601806446";
const BADGE_SRC = "https://cdn7.monday.com/images/working-status/wfh.svg";
const BADGE_SRC = "https://cdn.worldvectorlogo.com/logos/monday-1.svg";

export const States = () => {
const badgeProps = useMemo(() => ({ src: BADGE_SRC }), []);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ exports[`renders correctly with empty props 1`] = `
</div>
<svg
aria-hidden={false}
aria-label=""
className="icon_component chip-icon close icon_component--clickable"
fill="currentColor"
height="18"
Expand Down
28 changes: 14 additions & 14 deletions src/components/Toggle/__tests__/__snapshots__/toggle.jest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

exports[`Toggle Tests Snapshot Tests renders correctly when disabled 1`] = `
<label
className="monday-style-toggle_wrapper"
className="monday-style-toggle_wrapper monday-style-toggle_wrapper--disabled"
>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
Off
</span>
Expand Down Expand Up @@ -34,10 +34,10 @@ exports[`Toggle Tests Snapshot Tests renders correctly when disabled 1`] = `
/>
<div
aria-hidden="true"
className="monday-style-toggle_toggle monday-style-toggle_toggle--selected monday-style-toggle_toggle--disabled"
className="monday-style-toggle_toggle monday-style-toggle_toggle--selected"
/>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
On
</span>
Expand All @@ -49,7 +49,7 @@ exports[`Toggle Tests Snapshot Tests renders correctly when selection defined by
className="monday-style-toggle_wrapper"
>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
Off
</span>
Expand Down Expand Up @@ -81,7 +81,7 @@ exports[`Toggle Tests Snapshot Tests renders correctly when selection defined by
className="monday-style-toggle_toggle dummy-class-name monday-style-toggle_toggle--not-selected"
/>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
On
</span>
Expand All @@ -93,7 +93,7 @@ exports[`Toggle Tests Snapshot Tests renders correctly when selection defined by
className="monday-style-toggle_wrapper"
>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
Off
</span>
Expand Down Expand Up @@ -125,7 +125,7 @@ exports[`Toggle Tests Snapshot Tests renders correctly when selection defined by
className="monday-style-toggle_toggle dummy-class-name monday-style-toggle_toggle--selected"
/>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
On
</span>
Expand All @@ -137,7 +137,7 @@ exports[`Toggle Tests Snapshot Tests renders correctly when selection defined by
className="monday-style-toggle_wrapper"
>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
Off
</span>
Expand Down Expand Up @@ -169,7 +169,7 @@ exports[`Toggle Tests Snapshot Tests renders correctly when selection defined by
className="monday-style-toggle_toggle dummy-class-name monday-style-toggle_toggle--not-selected"
/>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
On
</span>
Expand All @@ -181,7 +181,7 @@ exports[`Toggle Tests Snapshot Tests renders correctly when selection defined by
className="monday-style-toggle_wrapper"
>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
Off
</span>
Expand Down Expand Up @@ -213,7 +213,7 @@ exports[`Toggle Tests Snapshot Tests renders correctly when selection defined by
className="monday-style-toggle_toggle dummy-class-name monday-style-toggle_toggle--selected"
/>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
On
</span>
Expand All @@ -225,7 +225,7 @@ exports[`Toggle Tests Snapshot Tests renders correctly with empty props 1`] = `
className="monday-style-toggle_wrapper"
>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
Off
</span>
Expand Down Expand Up @@ -257,7 +257,7 @@ exports[`Toggle Tests Snapshot Tests renders correctly with empty props 1`] = `
className="monday-style-toggle_toggle monday-style-toggle_toggle--selected"
/>
<span
className="monday-style-toggle__text"
className="monday-style-toggle_text"
>
On
</span>
Expand Down

0 comments on commit b3a33b2

Please sign in to comment.