mirror of
https://github.com/strapi/strapi.git
synced 2025-11-16 18:19:34 +00:00
Fix tabs border radius
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
f859d127f0
commit
6ae9ad619c
@ -5,6 +5,9 @@ const Tab = styled.div`
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
border-top-left-radius: ${({ isFirst, theme }) =>
|
||||||
|
isFirst ? theme.main.sizes.borderRadius : '0'};
|
||||||
|
border-top-right-radius: ${({ isLast, theme }) => (isLast ? theme.main.sizes.borderRadius : '0')};
|
||||||
${({ isActive, theme }) =>
|
${({ isActive, theme }) =>
|
||||||
isActive
|
isActive
|
||||||
? {
|
? {
|
||||||
|
|||||||
@ -32,6 +32,8 @@ const Tabs = ({ children, isLoading, tabsLabel }) => {
|
|||||||
isActive={index === selectedTabIndex}
|
isActive={index === selectedTabIndex}
|
||||||
key={tab.id}
|
key={tab.id}
|
||||||
onClick={() => handleSelectedTab(index)}
|
onClick={() => handleSelectedTab(index)}
|
||||||
|
isFirst={index === 0}
|
||||||
|
isLast={index === tabsLabel.length - 1}
|
||||||
>
|
>
|
||||||
<Text fontWeight={index === selectedTabIndex ? 'bold' : 'semiBold'}>
|
<Text fontWeight={index === selectedTabIndex ? 'bold' : 'semiBold'}>
|
||||||
{formatMessage({ id: tab.labelId, defaultMessage: tab.defaultMessage })}
|
{formatMessage({ id: tab.labelId, defaultMessage: tab.defaultMessage })}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user