Feedback bar is mis-aligned; transient notices overlap (#39233)
* Fix the feedback bar alignment to be centered * Move the transient notices to the top of the feedback bar * Add changelog file * Remove feedback bar animation
This commit is contained in:
parent
eb210907e0
commit
b5db405265
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Feedback bar is mis-aligned; transient notices overlap
|
|
@ -200,40 +200,38 @@ export function FeedbackBar( { product }: FeedbackBarProps ) {
|
|||
<>
|
||||
{ shouldShowFeedbackBar && (
|
||||
<div className="woocommerce-product-mvp-ces-footer">
|
||||
<div className="woocommerce-product-mvp-ces-footer__body">
|
||||
<Pill>Beta</Pill>
|
||||
<div className="woocommerce-product-mvp-ces-footer__message">
|
||||
{ createInterpolateElement(
|
||||
__(
|
||||
'How is your experience with the new product form? <span><shareButton>Share feedback</shareButton> or <turnOffButton>turn it off</turnOffButton></span>',
|
||||
'woocommerce'
|
||||
<Pill>Beta</Pill>
|
||||
<div className="woocommerce-product-mvp-ces-footer__message">
|
||||
{ createInterpolateElement(
|
||||
__(
|
||||
'How is your experience with the new product form? <span><shareButton>Share feedback</shareButton> or <turnOffButton>turn it off</turnOffButton></span>',
|
||||
'woocommerce'
|
||||
),
|
||||
{
|
||||
span: (
|
||||
<span className="woocommerce-product-mvp-ces-footer__message-buttons" />
|
||||
),
|
||||
{
|
||||
span: (
|
||||
<span className="woocommerce-product-mvp-ces-footer__message-buttons" />
|
||||
),
|
||||
shareButton: (
|
||||
<Button
|
||||
variant="link"
|
||||
onClick={ onShareFeedbackClick }
|
||||
/>
|
||||
),
|
||||
turnOffButton: (
|
||||
<Button
|
||||
onClick={ onTurnOffEditorClick }
|
||||
variant="link"
|
||||
/>
|
||||
),
|
||||
}
|
||||
) }
|
||||
</div>
|
||||
<Button
|
||||
className="woocommerce-product-mvp-ces-footer__close-button"
|
||||
icon={ closeSmall }
|
||||
label={ __( 'Hide this message', 'woocommerce' ) }
|
||||
onClick={ onHideFeedbackBarClick }
|
||||
></Button>
|
||||
shareButton: (
|
||||
<Button
|
||||
variant="link"
|
||||
onClick={ onShareFeedbackClick }
|
||||
/>
|
||||
),
|
||||
turnOffButton: (
|
||||
<Button
|
||||
onClick={ onTurnOffEditorClick }
|
||||
variant="link"
|
||||
/>
|
||||
),
|
||||
}
|
||||
) }
|
||||
</div>
|
||||
<Button
|
||||
className="woocommerce-product-mvp-ces-footer__close-button"
|
||||
icon={ closeSmall }
|
||||
label={ __( 'Hide this message', 'woocommerce' ) }
|
||||
onClick={ onHideFeedbackBarClick }
|
||||
></Button>
|
||||
</div>
|
||||
) }
|
||||
</>
|
||||
|
|
|
@ -1,38 +1,20 @@
|
|||
$gutenberg-blue: var(--wp-admin-theme-color);
|
||||
|
||||
@keyframes slide-up {
|
||||
0% {
|
||||
bottom: -60px;
|
||||
}
|
||||
100% {
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.woocommerce-product-mvp-ces-footer {
|
||||
position: fixed;
|
||||
animation: slide-up 0.5s forwards;
|
||||
width: 100%;
|
||||
border-top: 1px solid var(--gutenberg-gray-100, #f0f0f0);
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
backdrop-filter: blur(6px);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
// the left/right padding is set to this to match the padding of
|
||||
// .block-editor-block-list__layout.is-root-container and
|
||||
// .editor-styles-wrapper combined
|
||||
padding: $gap calc(2 * $gap + $gap-small);
|
||||
gap: $gap;
|
||||
|
||||
&__body {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
// the left/right padding is set to this to match the padding of
|
||||
// .block-editor-block-list__layout.is-root-container and
|
||||
// .editor-styles-wrapper combined
|
||||
padding: $gap calc(2 * $gap + $gap-small);
|
||||
gap: $gap;
|
||||
|
||||
@include breakpoint(">782px") {
|
||||
padding: $gap 0;
|
||||
max-width: 650px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@include breakpoint(">782px") {
|
||||
padding: $gap 0;
|
||||
max-width: 650px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.woocommerce-pill {
|
||||
|
|
Loading…
Reference in New Issue