-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(carousel): Add rounded corners and elevation using theme tokens #34971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "feat/enhance-carousel-styles-theme-tokens", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Plz put proper text describing the change there as it will appear in changelogs |
||
"packageName": "@fluentui/react-carousel", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,13 @@ import * as React from 'react'; | |
const useClasses = makeStyles({ | ||
bannerCard: { | ||
alignContent: 'center', | ||
borderRadius: tokens.borderRadiusLarge, | ||
height: '450px', | ||
textAlign: 'left', | ||
position: 'relative', | ||
}, | ||
image: { | ||
borderRadius: 'inherit', | ||
}, | ||
cardContainer: { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
|
@@ -55,7 +57,7 @@ const BannerCard: React.FC<{ children: React.ReactNode; imageSrc: string; index: | |
|
||
return ( | ||
<CarouselCard className={classes.bannerCard} aria-label={`${index + 1} of ${IMAGES.length}`} id={`test-${index}`}> | ||
<Image fit="cover" src={imageSrc} role="presentation" /> | ||
<Image fit="cover" src={imageSrc} className={classes.image} role="presentation" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://react.fluentui.dev/?path=/docs/components-text--docs#presets Should it be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe, I would discuss it with design team. Open for any approach which design team will accept. |
||
|
||
<div className={classes.cardContainer}> | ||
<div className={classes.title}>{children}</div> | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵🏾♀️ visual changes to review in the Visual Change Report
vr-tests-react-components/Drawer 1 screenshots
vr-tests-react-components/Positioning 2 screenshots
vr-tests-react-components/TagPicker 3 screenshots
There were 3 duplicate changes discarded. Check the build logs for more information.