Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Purchase Order styles

Customize the Purchase Order drop-in using CSS classes and design tokens. This page covers the Purchase Order-specific container classes and customization examples. For comprehensive information about design tokens, responsive breakpoints, and styling best practices, see Styling Drop-In Components.

Version: 0.0.1

Customization example

Add this to the CSS file of the specific commerce block where you’re using the Purchase Order drop-in.

For a complete list of available design tokens (colors, spacing, typography, etc.), see the Design tokens reference.

.purchase-orders-confirmation-content__title {
color: var(--color-neutral-800);
font: var(--type-headline-1-font);
letter-spacing: var(--type-headline-1-letter-spacing);
color: var(--color-brand-800);
font: var(--type-headline-1-font);
letter-spacing: var(--type-headline-1-letter-spacing);
}

Container classes

The Purchase Order drop-in uses BEM-style class naming. Use the browser DevTools to inspect elements and find specific class names.

/* ApprovalRuleDetailsContent */
.approval-rule-details__button {}
.b2b-purchase-order-approval-rule-details-content {}
.b2b-purchase-order-approval-rule-details-content__item {}
.b2b-purchase-order-approval-rule-details-content__label {}
.b2b-purchase-order-approval-rule-details-content__value {}
/* ApprovalRuleForm */
.approval-rule-form-loader__buttons {}
.approval-rule-form-loader__section {}
.b2b-purchase-order-approval-rule-form {}
.b2b-purchase-order-approval-rule-form__applies-to {}
.b2b-purchase-order-approval-rule-form__approval-role {}
.b2b-purchase-order-approval-rule-form__buttons {}
.b2b-purchase-order-approval-rule-form__rule-condition {}
.b2b-purchase-order-approval-rule-form__rule-condition-container {}
.b2b-purchase-order-approval-rule-form__rule-condition-container--error {}
.b2b-purchase-order-approval-rule-form__rule-type {}
.dropin-checkbox {}
.dropin-multi-select {}
.dropin-skeleton {}
.error-message {}
/* FormLoader */
.approval-rule-form-loader__buttons {}
.approval-rule-form-loader__section {}
.b2b-purchase-order-form-loader {}
.dropin-skeleton {}
/* PurchaseOrderApprovalFlowContent */
.b2b-purchase-order-approval-flow-content__description {}
.b2b-purchase-order-approval-flow-content__divider {}
.b2b-purchase-order-approval-flow-content__icon--approved {}
.b2b-purchase-order-approval-flow-content__icon--pending {}
.b2b-purchase-order-approval-flow-content__icon--rejected {}
.b2b-purchase-order-approval-flow-content__item {}
.b2b-purchase-order-approval-flow-content__list {}
.b2b-purchase-order-approval-flow-content__title {}
/* PurchaseOrderCommentFormContent */
.b2b-purchase-order-comment-form-content {}
.dropin-textarea {}
.dropin-textarea__label--floating {}
/* PurchaseOrderCommentsListContent */
.b2b-purchase-order-comment-list-content__actions {}
.b2b-purchase-order-comment-list-content__description {}
.b2b-purchase-order-comment-list-content__divider {}
.b2b-purchase-order-comment-list-content__item {}
.b2b-purchase-order-comment-list-content__list {}
.b2b-purchase-order-comment-list-content__title {}
/* PurchaseOrderConfirmationContent */
.purchase-orders-confirmation-content__link {}
.purchase-orders-confirmation-content__message {}
.purchase-orders-confirmation-content__title {}
/* PurchaseOrderHistoryLogContent */
.b2b-purchase-order-history-log-content__actions {}
.b2b-purchase-order-history-log-content__description {}
.b2b-purchase-order-history-log-content__divider {}
.b2b-purchase-order-history-log-content__item {}
.b2b-purchase-order-history-log-content__list {}
.b2b-purchase-order-history-log-content__title {}
/* PurchaseOrderStatusContent */
.b2b-purchase-order-status-content__actions {}
.b2b-purchase-order-status-content__message {}
.dropin-in-line-alert__description {}
.purchase-order-status {}
/* PurchaseOrdersHeader */
.dropin-divider {}
.purchase-orders-header {}
.purchase-orders-header--with-divider {}
/* PurchaseOrdersTable */
.b2b-purchase-order-purchase-orders-table {}
.b2b-purchase-order-purchase-orders-table--empty-state {}
.b2b-purchase-order-purchase-orders-table__row-details {}
.b2b-purchase-order-purchase-orders-table__row-details-action-inner-wrapper {}
.b2b-purchase-order-purchase-orders-table__row-details-content {}
.b2b-purchase-order-purchase-orders-table__status {}
.b2b-purchase-order-purchase-orders-table__status--negative {}
.b2b-purchase-order-purchase-orders-table__status--positive {}
.b2b-purchase-order-purchase-orders-table__status--waiting {}
.dropin-action-button {}
.dropin-card__content {}
.dropin-table__body {}
.dropin-table__body__cell {}
.dropin-table__header__row {}
.purchase-orders-table__empty-state {}
.purchase-orders-table__header {}
.purchase-orders-table__item--skeleton {}
.purchase-orders-table__pagination {}
.purchase-orders-table__pagination--loading {}
.purchase-orders-table__pagination-counter {}
.purchase-orders-table__pagination-page-size {}
.purchase-orders-table__pagination-wrapper {}
/* PurchaseOrdersTableActions */
.b2b-purchase-order-purchase-orders-table-actions {}
.b2b-purchase-order-purchase-orders-table-actions__buttons {}

For the source CSS files, see the storefront-purchase-order repository.