Skip to content

Commit a398985

Browse files
p-m-pclaude
andcommitted
style: simplify CustomStyles story styling
Remove unnecessary styling properties and simplify the wrapper design for cleaner presentation of the slider controls customization example. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1342f30 commit a398985

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

stories/SliderControls.stories.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,7 @@ export const CustomStyles: Story = {
194194
display: 'block',
195195
width: '600px',
196196
border: 'none',
197-
borderRadius: '20px',
198197
overflow: 'hidden',
199-
boxShadow: '0 25px 50px rgba(0,0,0,0.15), 0 10px 30px rgba(0,0,0,0.1)',
200-
background: 'linear-gradient(135deg, #6b7280 0%, #9ca3af 100%)',
201198
position: 'relative',
202199

203200
// BoxSlider control styling with supported CSS custom properties
@@ -246,21 +243,21 @@ export const CustomStyles: Story = {
246243
return (
247244
<div
248245
style={{
249-
background: 'linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)',
250-
padding: '60px',
251-
borderRadius: '20px',
246+
background: 'linear-gradient(135deg, #6b7280 0%, #9ca3af 100%)',
247+
boxShadow:
248+
'0 25px 50px rgba(0,0,0,0.15), 0 10px 30px rgba(0,0,0,0.1)',
249+
padding: '0.5rem',
252250
display: 'flex',
253251
justifyContent: 'center',
254252
alignItems: 'center',
255-
minHeight: '500px',
256253
}}>
257254
<SliderControls {...args}>
258255
<CarouselSlider
259256
speed={700}
260257
timeout={4000}
261258
pauseOnHover
262259
swipe
263-
style={{ display: 'block', width: '100%', height: '350px' }}>
260+
style={{ display: 'block', width: '100%', height: '300px' }}>
264261
{slideData.map((slide, index) => createSlide(slide, index))}
265262
</CarouselSlider>
266263
</SliderControls>

0 commit comments

Comments
 (0)