Skip to content

Commit

Permalink
Merge pull request #922 from emgage/Next
Browse files Browse the repository at this point in the history
Next into master
  • Loading branch information
Maannniii authored Aug 27, 2021
2 parents bbbf457 + f5ddb25 commit 98c5965
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
12 changes: 4 additions & 8 deletions src/components/Banner/Banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@
//@import '../../../themes/Delicious/Button.scss';


$accent-height: 4px;
$accent-height: 1px;
$dismiss-size: rem(16px);
$ribbon-flex-basis: rem(32px);
$secondary-action-vertical-padding: 0.5 * (control-height() - line-height(body));
$secondary-action-horizontal-padding: 1.5 * spacing(tightest);

@mixin banner-colors($highlight, $background) {
background-color: $background;
box-shadow:
inset $accent-height 0 0 0 $highlight,
inset shadow(transparent),
shadow();
border: 1px solid $highlight;

&:focus {
box-shadow:
Expand All @@ -36,7 +33,7 @@ $secondary-action-horizontal-padding: 1.5 * spacing(tightest);
position: relative;
display: flex;
padding: spacing();
border-radius: 0 0 border-radius() border-radius();
border-radius: border-radius(larger);
transition: box-shadow duration() easing();

+ .Banner {
Expand Down Expand Up @@ -70,7 +67,7 @@ $secondary-action-horizontal-padding: 1.5 * spacing(tightest);

.ribbon {
flex: 0 0 $ribbon-flex-basis;
margin-right: spacing();
margin-right: spacing(tightest);
}

.heading {
Expand Down Expand Up @@ -167,4 +164,3 @@ $secondary-action-horizontal-padding: 1.5 * spacing(tightest);
.bannerBox {
display: flex;
}

13 changes: 8 additions & 5 deletions src/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import flagSvg from './icons/flag.svg';
import circleAlertSvg from './icons/circle-alert.svg';
import circleBarredSvg from './icons/circle-barred.svg';
import confettiSvg from './icons/confetti.svg';
import BodyText from '../BodyText';

export type Status = 'success' | 'info' | 'warning' | 'critical';

Expand Down Expand Up @@ -104,9 +105,11 @@ const banner = ({
headingMarkup = (
<div className={theme.heading} id={headingID}>
<Heading
element="h6"
element="h4"
componentClass={baseTheme.bannerHading}
theme={theme}>
theme={theme}
headingSize="h4"
>
{componentTitle}
</Heading>
</div>
Expand All @@ -118,9 +121,9 @@ const banner = ({
return (
<div key={`option_${index}`} className={baseTheme.bannerBox}>
<Icon source = {item.icon as keyof typeof IconList} componentColor = {item.componentColor ? item.componentColor as IconColor : undefined} />
<p className={baseTheme.bannerContent}>
<BodyText element="p" componentClass={baseTheme.bannerContent}>
{item.text}
</p>
</BodyText>
</div>
);
});
Expand Down Expand Up @@ -157,7 +160,7 @@ const banner = ({
const dismissButton = onDismiss
? (
<div className={theme.dismiss}>
<Button plain icon="cancelSmall" accessibilityLabel="Dismiss notification" onClick={onDismiss} theme={theme} />
<Button plain icon="cancelSmall" accessibilityLabel="Dismiss notification" onClick={onDismiss} theme={theme} title="Dismiss notification"/>
</div>
)
: null;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/RowAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class RowAction extends React.PureComponent<Props, State> {
return (
validActionConfigs && validActionConfigs.length > 0 ?
<React.Fragment>
<div style={{ float: 'right', position: 'relative' }}>
<div style={{ float: 'right' }}>
<Button componentId={`${componentId}BtnMoreActions`} theme={theme} componentClass={theme.rowActionButton} disabled={actionInProgress} icon="horizontalDots" onClick={(e: React.FormEvent<HTMLElement>) => this.dropdownToggle(e)} title="More Actions">
</Button>
<Dropdown
Expand Down
4 changes: 2 additions & 2 deletions src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ class Table extends React.PureComponent<Props, State> {
<NoData iconSource="search" label={noDataInSearchLabel}></NoData>
);
}
return (
return (
<NoData iconSource="inbox" label={noDataLabel}></NoData>
);
);

}

Expand Down
3 changes: 2 additions & 1 deletion src/styles/foundation/border-radius.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

$border-radius-data: (
base: 3px,
large: 6px
large: 6px,
larger: 8px
);


Expand Down

0 comments on commit 98c5965

Please sign in to comment.