Skip to content

Commit 444a159

Browse files
committed
Blinking the Pro button for basic version.
1 parent b5564a0 commit 444a159

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

src/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,3 +1887,13 @@ ol.editor-nav li {
18871887
.cheat-sheet tr>td, .cheat-sheet tr>th {
18881888
padding: 10px 5px;
18891889
}
1890+
1891+
.prod-version.basic {
1892+
animation: blinker 1s linear infinite;
1893+
}
1894+
1895+
@keyframes blinker {
1896+
50% {
1897+
opacity: 0;
1898+
}
1899+
}

src/zenuml/components/MainHeader/ProductVersionLabel/ProductVersionLabelAbstract.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
const ProductVersionLabelAbstract = ({ tooltip, style, clickHandler }) => {
1+
const ProductVersionLabelAbstract = ({ className, tooltip, style, clickHandler }) => {
22
const styleTemplate = {
33
padding: '1px 15px 1px 15px'
44
};
55

66
const mergedStyle = {...styleTemplate, ...style};
77

8+
const classNames = "prod-version btn flex flex-v-center hint--rounded hint--bottom-left" + " " + className
89
return (
910
<i style={mergedStyle}
10-
className="btn flex flex-v-center hint--rounded hint--bottom-left"
11+
className={classNames}
1112
aria-label={tooltip} onClick={clickHandler}
1213
>Pro</i>
1314
);

src/zenuml/components/MainHeader/ProductVersionLabel/ProductVersionLabelBasic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const ProductVersionLabelBasic = ({ tooltip, clickHandler }) => {
44
const style = {
55
'background-color': 'grey'
66
};
7-
return <ProductVersionLabelAbstract tooltip={tooltip} clickHandler={clickHandler} style={style} />
7+
return <ProductVersionLabelAbstract className="basic" tooltip={tooltip} clickHandler={clickHandler} style={style} />
88
};
99

1010
export { ProductVersionLabelBasic };

src/zenuml/components/MainHeader/ProductVersionLabel/ProductVersionLabelProfessional.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const ProductVersionLabelProfessional = ({ clickHandler }) => {
66
color: 'white'
77
};
88

9-
return <ProductVersionLabelAbstract clickHandler={clickHandler} style={style} tooltip="Thanks for your support" />
9+
return <ProductVersionLabelAbstract className="pro" clickHandler={clickHandler} style={style} tooltip="Thanks for your support" />
1010
};
1111

1212
export { ProductVersionLabelProfessional };

0 commit comments

Comments
 (0)