Skip to content

Commit 9bb5e1f

Browse files
authored
Merge pull request #56 from kimcoder/feature/issue-54
Feature/issue 54
2 parents 367d44d + 079cd18 commit 9bb5e1f

File tree

8 files changed

+270
-87
lines changed

8 files changed

+270
-87
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
### 2.2.0 (September 19, 2021)
4+
5+
- add className for image slider
6+
- `.rsis-container`
7+
- `.rsis-image`
8+
39
### 2.1.2 (June 16, 2021)
410

511
- add 'startIndex' props.

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,25 @@ If You want to see more detail,<br>
9595

9696
- [`example/app.tsx`](https://github.com/kimcoder/react-simple-image-slider/blob/master/example/App.tsx)<br>
9797

98+
# Style customize
99+
100+
- can customize by className with `!important`;
101+
102+
```
103+
.your-app {
104+
.rsis-container {
105+
// do something
106+
}
107+
}
108+
109+
.your-app {
110+
.rsis-image {
111+
background-size: contain !important;
112+
}
113+
}
114+
115+
```
116+
98117
# Development
99118

100119
### directory & source

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)