Skip to content

Commit

Permalink
Tokens: Move Emoji Fonts Higher (#3117)
Browse files Browse the repository at this point in the history
Co-authored-by: ponori <[email protected]>
Co-authored-by: Gestalt Bot <[email protected]>
Co-authored-by: Enio Moura <[email protected]>
Co-authored-by: Alberto Carreras <[email protected]>
Co-authored-by: Hector Jaime <[email protected]>
Co-authored-by: laylaleeal <[email protected]>
  • Loading branch information
7 people authored Jul 31, 2023
1 parent 990fca5 commit 14b623d
Show file tree
Hide file tree
Showing 30 changed files with 827 additions and 456 deletions.
22 changes: 8 additions & 14 deletions docs/docs-components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,20 @@ function Header() {
);

useEffect(() => {
const devModeSetFromUrl = router.query.devexample && router.query.devexample === 'true';

// do not show switch if set via url
if (devModeSetFromUrl) {
setShowDevelopmentEditorSwitch(false);
return;
}

const isDeployPreviewEnvironment =
process.env.NODE_ENV === 'production' &&
window?.location?.href?.startsWith('https://deploy-preview-');

if (isDeployPreviewEnvironment || process.env.NODE_ENV === 'development')
const devModeSetFromUrl = router.query.devexample && router.query.devexample === 'true';

// show switch if set via url or is a deployment URL
if (devModeSetFromUrl || isDeployPreviewEnvironment) {
setShowDevelopmentEditorSwitch(true);
}
}, [setShowDevelopmentEditorSwitch, router.pathname, router.query]);

const { colorScheme, setColorScheme, devExampleMode, setDevExampleMode } = useAppContext();

const devExampleModeButtonLabel = `Toggle dev example mode ${
devExampleMode === 'development' ? 'off' : 'on'
}`;

const darkModeButtonLabel = `Toggle ${colorScheme === 'dark' ? 'light' : 'dark'} mode`;
const onChangeColorScheme = () => {
trackButtonClick(
Expand Down Expand Up @@ -198,7 +190,9 @@ function Header() {
onClick={onChangeDevExampleMode}
selected={devExampleMode === 'development'}
tooltip={{
text: devExampleModeButtonLabel,
text: `Toggle dev example mode ${
devExampleMode === 'development' ? 'off' : 'on'
}`,
inline: true,
idealDirection: 'down',
accessibilityLabel: '',
Expand Down
32 changes: 27 additions & 5 deletions docs/docs-components/data/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Layer from '../../graphics/building-blocks/Layer.svg';
import Letterbox from '../../graphics/building-blocks/Letterbox.svg';
import Mask from '../../graphics/building-blocks/Mask.svg';
import Pog from '../../graphics/building-blocks/Pog.svg';
import Popover from '../../graphics/building-blocks/Popover.svg';
import ScrollBoundaryContainer from '../../graphics/building-blocks/ScrollBoundaryContainer.svg';
import SheetMobile from '../../graphics/building-blocks/SheetMobile.svg';
import Sticky from '../../graphics/building-blocks/Sticky.svg';
Expand All @@ -22,6 +21,7 @@ import Button from '../../graphics/general/Button.svg';
import ButtonGroup from '../../graphics/general/ButtonGroup.svg';
import ButtonLink from '../../graphics/general/ButtonLink.svg';
import Callout from '../../graphics/general/Callout.svg';
import Card from '../../graphics/general/Card.svg';
import Checkbox from '../../graphics/general/Checkbox.svg';
import Collage from '../../graphics/general/Collage.svg';
import ComboBox from '../../graphics/general/ComboBox.svg';
Expand All @@ -47,6 +47,8 @@ import Module from '../../graphics/general/Module.svg';
import NumberField from '../../graphics/general/NumberField.svg';
import OverlayPanel from '../../graphics/general/OverlayPanel.svg';
import PageHeader from '../../graphics/general/PageHeader.svg';
import Popover from '../../graphics/general/Popover.svg';
import PopoverEducational from '../../graphics/general/PopoverEducational.svg';
import Pulsar from '../../graphics/general/Pulsar.svg';
import RadioGroup from '../../graphics/general/RadioGroup.svg';
import SearchField from '../../graphics/general/SearchField.svg';
Expand All @@ -70,10 +72,10 @@ import Tooltip from '../../graphics/general/Tooltip.svg';
import Upsell from '../../graphics/general/Upsell.svg';
import Video from '../../graphics/general/Video.svg';
import WashAnimated from '../../graphics/general/WashAnimated.svg';
import GlobalEventsHandlerProvider from '../../graphics/utilities/GlobalEventsHandlerProvider.svg';
import HookFocusVisible from '../../graphics/utilities/hook-focus-visible.svg';
import HookReducedMotion from '../../graphics/utilities/hook-reduced-motion.svg';
import ProviderColorScheme from '../../graphics/utilities/provider-color-scheme.svg';
import ProviderHandlers from '../../graphics/utilities/provider-global-events-handler.svg';

const componentData: $ReadOnlyArray<ComponentData> = [
{
Expand Down Expand Up @@ -471,6 +473,26 @@ const componentData: $ReadOnlyArray<ComponentData> = [
},
},
},
{
id: 'Card',
platform: {
ios: {
name: 'Card',
visual: {
svg: <Card />,
},
path: '/ios/card/card',
alias: ['Entry Card', 'Module', 'Panel', 'Teaser'],
description:
'Card is a semi-modular container used to house Card.Header and a variant of the available preview blocks.',
category: ['Pins and imagery'],
status: {
documentation: 'ready',
status: 'planned',
},
},
},
},
{
id: 'Checkbox',
platform: {
Expand Down Expand Up @@ -869,7 +891,7 @@ const componentData: $ReadOnlyArray<ComponentData> = [
web: {
name: 'GlobalEventsHandlerProvider',
visual: {
svg: <ProviderHandlers />,
svg: <GlobalEventsHandlerProvider />,
},
alias: ['OnLinkNavigationProvider'],
path: '/web/utilities/globaleventshandlerprovider',
Expand Down Expand Up @@ -1539,7 +1561,7 @@ const componentData: $ReadOnlyArray<ComponentData> = [
alias: ['Flyout'],
description:
'Popover is a floating view that contains a task related to the content on screen.',
category: ['Building blocks'],
category: ['Overlays'],
status: {
accessible: {
summary: 'partial',
Expand Down Expand Up @@ -1571,7 +1593,7 @@ const componentData: $ReadOnlyArray<ComponentData> = [
web: {
name: 'PopoverEducational',
visual: {
svg: <Popover />,
svg: <PopoverEducational />,
},
description:
'PopoverEducational is a floating container that introduces users to elements on the screen. Used for education or onboarding experiences.',
Expand Down
5 changes: 5 additions & 0 deletions docs/examples/table/sortableTableCells.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export default function SortableHeaderExample(): Node {
return (
<Box height="100%" display="flex" justifyContent="center" alignItems="center">
<Table accessibilityLabel="Sortable header cells">
<colgroup>
<col span="1" style={{ width: '10%' }} />
<col span="1" style={{ width: '10%' }} />
<col span="1" style={{ width: '80%' }} />
</colgroup>
<Table.Header>
<Table.Row>
<Table.SortableHeaderCell
Expand Down
1 change: 0 additions & 1 deletion docs/graphics/building-blocks/Popover.svg

This file was deleted.

17 changes: 16 additions & 1 deletion docs/graphics/general/DateField.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 45 additions & 1 deletion docs/graphics/general/DatePicker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 14b623d

Please sign in to comment.