Skip to content

Commit adf7b15

Browse files
committed
test: apply className for example
1 parent 2d298bd commit adf7b15

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

example/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import MenuItem from '@material-ui/core/MenuItem';
1313
import Select from '@material-ui/core/Select';
1414
import SimpleImageSlider from '../dist';
1515
import Input from '@material-ui/core/Input';
16+
import './app.scss';
1617

1718
const IMAGES = [
1819
{ url: 'images/1.jpg' },
@@ -100,7 +101,7 @@ const App: React.FC = () => {
100101
);
101102

102103
return (
103-
<div style={{ textAlign: 'center' }}>
104+
<div style={{ textAlign: 'center' }} className="root">
104105
<CssBaseline />
105106
<AppBar style={{ position: 'relative', height: 140, textAlign: 'center' }}>
106107
<h1 style={{ marginBottom: 5 }}>React Simple Image Slider Example</h1>

example/app.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.root {
2+
.rsis-image {
3+
background-size: cover !important;
4+
}
5+
}

0 commit comments

Comments
 (0)