सीधे मुख्य कॉन्टेंट पर जाएँ
menumenu tanreiexpand_morecontrasttranslate
tanreiexpand_more
शुरुआत करेंWebReactSwiftUIJetpack ComposeFlutterReact Nativeप्रीसेटआपका अपना डिज़ाइन सिस्टमAI एजेंट के साथ Tanrei का इस्तेमालब्रांडडिज़ाइन टोकनडिज़ाइन सिस्टम और कस्टमाइज़ेशनTheme Studioरंगटाइपोग्राफ़ीआइकनशेपएलिवेशनमोशनइंटरैक्शन स्टेटव्यवहारलेआउटसुलभताशब्दकलर टोकनटाइप स्केल टोकनशेप टोकनएलिवेशन टोकनमोशन टोकनस्टेट टोकनस्पेस और माप के टोकनकंपोनेंटबटनमुख्य ऐक्शन बटनसेगमेंटेड बटनबटन ग्रुपमेन्यू वाला बटनटूलबारकॉपी बटनचेकबॉक्सरेडियो बटनस्विचचिपमेन्यूस्लाइडरस्लाइडर फ़ील्डकैलेंडरDateTimePickerफ़ील्ड ग्रुपरेडियो ग्रुपचेकबॉक्स ग्रुपसिलेक्टसिलेक्ट फ़ील्डमेन्यू बारफ़ाइल अपलोडफ़ाइल पिकर उन्नतड्रॉप ज़ोनटेक्स्ट इनपुट उन्नतटेक्स्ट फ़ील्डचिप फ़ील्डफ़ील्डकॉम्बोबॉक्स उन्नतकॉम्बोबॉक्स फ़ील्डनंबर इनपुट उन्नतनंबर फ़ील्डकलर इनपुट उन्नतकलर फ़ील्डवन-टाइम कोड इनपुट उन्नतवन-टाइम कोड फ़ील्डएम्बेडेड टेक्स्ट इनपुट उन्नतचैट कंपोज़रकार्डडिवाइडरमोडल लेयर उन्नतडायलॉगलिस्टलिस्ट पंक्तिबॉटम शीटसाइड शीटकैरसेलकोड ब्लॉकटेबलपॉपओवरचरणअकॉर्डियनडिस्क्रिप्शन लिस्टफ़िगरऐप शेलपेज हेडरट्री व्यूटाइमलाइनइमेज प्रीव्यूसाइज़ हैंडलसाइज़ बदलने वाला फ़्रेमस्क्रॉल एरियाबैजप्रोग्रेस इंडिकेटरमीटरनंबर टिकरलोडिंग इंडिकेटरस्नैकबारटूलटिपकीबोर्ड शॉर्टकटटैगइनलाइन कोडकॉलआउटअवतारख़ाली स्टेटटैग ग्रुपस्केलेटनफ़ाइल आइटमस्वॉचमार्की टेक्स्टटैबटैब व्यूऐप बारनेविगेशन बारनेविगेशन ड्रॉअरखोजलिंकपेजिनेशनपिछला और अगला लिंकस्टेपरब्रेडक्रंबविषय सूचीलिंक कार्डFAB मेन्यूस्थितिTanrei कैसे बनता हैयोगदानलाइसेंस और श्रेय
होमकंपोनेंटमुख्य ऐक्शन बटन

मुख्य ऐक्शन बटन

स्क्रीन की अकेली सबसे महत्वपूर्ण क्रिया करता है, कॉन्टेंट के ऊपर तैरते एक उठे हुए कंटेनर पर, अपना नाम पूरा लिखकर या सिमटकर सिर्फ़ अपने आइकन के साथ।

content_copyMarkdown में देखें
श्रेणी
ऐक्शन
टोकन
comp.main-action-button
स्तर
आधार

अवलोकन

Web
tanrei-main-action-button
schedule
SwiftUI
TanreiMainActionButton
radio_button_unchecked
Jetpack Compose
TanreiMainActionButton
radio_button_unchecked
Flutter
TanreiMainActionButton
radio_button_unchecked
React Native
MainActionButton
radio_button_unchecked

इससे जनरेट किया गया: docs/status/status.json, specs/main-action-button.spec.json

फैला हुआ और सिमटा हुआ

editedit

मुख्य ऐक्शन बटन वह एक क्रिया है जिसके लिए कोई स्क्रीन बनी है: मेलबॉक्स में “लिखें”, कैलेंडर में “नया इवेंट”, लिस्ट में “जोड़ें”। यह कॉन्टेंट के ऊपर तैरते एक उठे हुए कंटेनर पर रहता है, इसलिए जब कॉन्टेंट इसके नीचे स्क्रॉल होता है तब भी यह पहुँच में रहता है।

यह दो रूपों वाला एक ही बटन है। फैला हुआ रूप (डिफ़ॉल्ट) अपना आइकन और अपना लेबल दिखाता है। सिमटा हुआ रूप सिर्फ़ आइकन दिखाता है, फैले हुए रूप जितने ऊँचे एक वर्ग में, जो डिफ़ॉल्ट सिस्टम में एक गोला है। प्रॉडक्ट इसे दोनों रूपों के बीच बदलता है, उदाहरण के लिए कॉन्टेंट के स्क्रॉल होते समय इसे समेटकर और सबसे ऊपर पहुँचने पर फिर फैलाकर। यह एक क्रिया है, टॉगल कभी नहीं: समेटने से इसका शेप बदलता है, इसका अर्थ नहीं, और लेबल दोनों रूपों में इसका एक्सेसिबल नाम बना रहता है।

वेब पर यह <tanrei-main-action-button> है, और React में MainActionButton। SwiftUI, Compose, Flutter और React Native ने इसे अभी इम्प्लीमेंट नहीं किया है।

इस्तेमाल

लेबल एक प्रॉपर्टी है, कॉन्टेंट नहीं, क्योंकि इसकी ज़रूरत दोनों रूपों में है: फैले हुए रूप में यह दिखता है, और एक्सेसिबल नाम तो यह हमेशा रहता है। आइकन आइकन सेट का एक ग्लिफ़ है। बटन अपनी जगह ख़ुद तय नहीं करता: उसे आपका लेआउट रखता है, आम तौर पर स्क्रीन के इनलाइन-एंड वाले निचले कोने में, नेविगेशन बार से हटकर।

<tanrei-main-action-button class="primary-action" label="लिखें">
  <span slot="icon">edit</span>
</tanrei-main-action-button>

<!-- सिमटा हुआ: यह ऐट्रिब्यूट extended प्रॉपर्टी का उलटा है। -->
<tanrei-main-action-button label="लिखें" collapsed><span slot="icon">edit</span></tanrei-main-action-button>

<!-- जो ग्लिफ़ यह दिखाता है कि क्रिया किधर ले जाती है, वह लेबल के बाद रहता है। -->
<tanrei-main-action-button label="आगे" icon-position="trailing"><span slot="icon">arrow_forward</span></tanrei-main-action-button>

<style>
  /* एलिमेंट ख़ुद कुछ नहीं रखता: पेज उसे इनलाइन-एंड वाले निचले कोने में रखता है। */
  tanrei-main-action-button.primary-action {
    position: fixed;
    inset-inline-end: var(--tanrei-sys-space-space400);
    inset-block-end: var(--tanrei-sys-space-space400);
  }
</style>

<script type="module">
  import '@tanrei/web/components/main-action-button';
  const compose = document.querySelector('tanrei-main-action-button.primary-action');
  compose.addEventListener('click', newMessage);
  // extended एक प्रॉपर्टी है जिसका डिफ़ॉल्ट true है; इसे बाहर से समेटें, उदाहरण के लिए जब पेज स्क्रॉल किया हुआ हो।
  addEventListener('scroll', () => (compose.extended = scrollY === 0), { passive: true });
</script>
import { MainActionButton } from '@tanrei/react';

<MainActionButton className="primary-action" label="लिखें" extended={atTop} onClick={newMessage}>
  <span slot="icon">edit</span>
</MainActionButton>

<MainActionButton variant="tonal" label="आगे" iconPosition="trailing" onClick={next}>
  <span slot="icon">arrow_forward</span>
</MainActionButton>

FAB और एक्सटेंडेड FAB कहाँ गए

मुख्य ऐक्शन बटन फ़्लोटिंग ऐक्शन बटन और एक्सटेंडेड FAB की जगह लेता है। जो पहले दो कंपोनेंट थे, जिनके बीच प्रॉडक्ट अदला-बदली करता था, वे अब एक ही कंपोनेंट के दो रूप हैं।

पहले अब
फ़्लोटिंग ऐक्शन बटन (fab) सिमटा हुआ मुख्य ऐक्शन बटन: extended को false किया हुआ
एक्सटेंडेड FAB (extended-fab) फैला हुआ मुख्य ऐक्शन बटन (डिफ़ॉल्ट)
एक्सटेंडेड FAB का expanded extended
comp.fab.*, comp.extended-fab.* comp.main-action-button.*

Material 3 के नाम

  • Material 3 के FAB, small FAB और large FAB क्रमशः medium, small और large साइज़ के सिमटे हुए मुख्य ऐक्शन बटन हैं। उसका extended FAB फैला हुआ रूप है।
  • Compose का expanded (ExtendedFloatingActionButton पर) और Flutter का isExtended (FloatingActionButton.extended पर) extended हैं।
  • Material 3 के primary, secondary, tertiary और surface FAB रंग filled, tonal और surface वेरिएंट पर, और उन मानों पर मैप होते हैं जिन्हें कोई प्रीसेट जोड़ता है। m3-like प्रीसेट Material के गोल-चौकोर कोने और 56 / 96 की ऊँचाइयाँ इसी कंपोनेंट के टोकन के ज़रिए बनाता है।
  • Material की भाषा में मुख्य ऐक्शन बटन ही FAB है। Material का FAB मेन्यू FAB मेन्यू है, जो m3-like लेयर का कंपोनेंट है: यह उन सिस्टम में होता है जो इस लेयर से आगे बढ़ते हैं।

स्पेक

वेरिएंट

editeditedit

साइज़, फैले हुए और सिमटे हुए

editediteditediteditedit

अंतिम आइकन, बिना आइकन, और अक्षम

arrow_forwardeditedit

संरचना

संरचना

वेब पैकेज जिस तरह फ़िक्स्चर filled-extended बनाता है, उसी के ऊपर बनाया गया।
भाग विवरण
1 container The raised shape that holds the icon and the label, casts the shadow and carries hover, focus and press. Extended it is as wide as its content; collapsed it is a square of its height, a circle under full corners.
2 icon · वैकल्पिक The glyph that names the action, at the leading or the trailing side of the label; drawn in the label color. Required to collapse.
3 label · वैकल्पिक Text that names the action. Shown while extended; hidden, but still the accessible name, while collapsed. Required to extend.
4 focus-ring Gap-then-ring indicator shown for keyboard focus.

माप

माप

लंबाई टोकन मान (px)
container padding-inline-start-with-icon tanrei.comp.main-action-button.container.padding-inline-start-with-icon.medium 16
container gap tanrei.comp.main-action-button.container.gap.medium 12
container padding-inline-end tanrei.comp.main-action-button.container.padding-inline-end.medium 20
container height tanrei.comp.main-action-button.container.height.medium 56
icon size tanrei.comp.main-action-button.icon.size.medium 24
वेब पैकेज जिस तरह फ़िक्स्चर filled-extended बनाता है, उसी के ऊपर बनाया गया।

प्रॉपर्टी

प्रॉपर्टी टाइप डिफ़ॉल्ट विवरण
variant filled | tonal | surface "filled" Emphasis. Filled is the screen's main action at full strength; tonal is quieter; surface keeps the container neutral where a colored one would compete with the content beneath (a map, a photo). A design system may add values.
size small | medium | large "medium" Visual height (40 / 56 / 96), which is also the side of the collapsed form, so one button keeps its height while it collapses and extends. Small sits beside a medium one for a related action; large marks the action on a wide or empty screen. The hit area always meets the minimum target. A design system may add values.
extended boolean true Shows the label beside the icon. False collapses the button to its icon (for example while the content scrolls); the label stays the accessible name. It changes the button's form, never its meaning: this is not a toggle. A button without an icon stays extended, and one without a label never extends (MAB-15, MAB-16).
fullWidth boolean false Makes the button take the whole width its container gives it, its icon and label centred: the one action of a screen held across its foot on a narrow screen (MAB-24). A full-width button is always drawn extended, so extended is ignored while it is true.
iconPosition leading | trailing "leading" The side of the label the icon is on, in the reading direction. Trailing is for a glyph that points where the action goes, such as the arrow of Next. Collapsed, the icon is centered whichever side it is on.
disabled boolean false Prevents interaction and removes the button from the focus order. Hiding it when its action is unavailable is usually better than disabling it.
label string "" The visible text while extended, and the accessible name in either form. Required: an icon alone is not a name.

स्लॉट

स्लॉट विवरण
icon The icon (a glyph of the system's icon set).

इवेंट

इवेंट विवरण
click The button was activated by pointer, touch, keyboard or assistive technology.

स्टेट

व्यवहार

EARS रूप में लिखी गई आवश्यकताएँ। हर प्लैटफ़ॉर्म के इम्प्लीमेंटेशन को इन ID के आधार पर टेस्ट किया जाता है। आवश्यकताओं का पाठ स्पेक फ़ाइल से ज्यों का त्यों, अंग्रेज़ी में दिखाया गया है।

ID आवश्यकता
MAB-1 WHEN the user activates the main action button by pointer, touch, Enter or Space THE main action button SHALL emit click exactly once.
MAB-2 WHILE disabled is true THE main action button SHALL NOT emit click, SHALL NOT be focusable and SHALL expose the disabled state to assistive technology.
MAB-3 WHILE hovered, keyboard-focused or pressed THE main action button SHALL render its container, label, icon, elevation and opacity from the component tokens of the highest-precedence active state, with precedence pressed over focused over hovered; focus gained by pointer or touch SHALL NOT select the focused state.
MAB-4 WHEN the main action button receives keyboard focus THE main action button SHALL show the focus ring without animation; focus gained by pointer or touch SHALL NOT show it.
MAB-5 WHERE the visual size is below the minimum target THE main action button SHALL extend its hit area on both axes to sys.target.touch for touch input and sys.target.pointer for fine pointers, without changing its visual size; a platform that cannot tell the input type SHALL use sys.target.touch.
MAB-6 WHILE disabled is true THE main action button SHALL render its container, label, icon, elevation and opacity from the disabled component tokens of its variant.
MAB-7 WHEN variant or size names a value that the active design system does not have THE main action button SHALL render with the default value's tokens, and in debug builds report the unknown value.
MAB-8 WHEN the main action button is pressed by pointer, touch, Enter or Space THE main action button SHALL show the pressed state without delay and SHALL keep it visible for at least sys.motion.duration.press-hold, even when the press ends sooner.
MAB-9 WHILE pressed THE main action button SHALL answer as sys.behavior.pressed-feedback names: overlay applies the pressed tokens to the whole container at once; ripple grows the pressed state layer from the point of contact (from the center for keyboard activation); dim applies the pressed opacity to the whole control and draws no state layer; none draws no answer to the press. Under ripple and dim only the container color stays with the state under the press; label, icon, elevation, opacity and shape still come from the pressed tokens. Under none every part stays with the state under the press. The ripple grows over comp.main-action-button.motion.feedback-duration with comp.main-action-button.motion.state-easing, fades over the state duration of its size (comp.main-action-button.motion.state-duration.small, .medium or .large) with comp.main-action-button.motion.state-easing once the press has ended and press-hold has passed, and appears whole where motion is reduced.
MAB-10 THE main action button SHALL ease its container corners by sys.shape.corner-smoothing (0 is a quarter circle, 0.6 the iOS continuous corner; a platform with only the OS curve draws it for any amount above 0) and show its keyboard focus as sys.behavior.focus-style names (ring or glow); a platform that cannot draw a choice SHALL fall back to the first value and state that in its README.
MAB-11 WHILE it is extended THE main action button SHALL draw a container at least the height of its size (comp.main-action-button.container.height.medium for medium, and so on) with the corners of its size (comp.main-action-button.container.shape.medium, and so on), holding its label and, when it has one, its icon on the side iconPosition names (leading: before the label in the reading direction; trailing: after it), the two separated by comp.main-action-button.container.gap.medium (and so on); it SHALL pad the icon's side by comp.main-action-button.container.padding-inline-start-with-icon.medium for a leading icon or comp.main-action-button.container.padding-inline-end-with-icon.medium for a trailing one, a start without an icon by comp.main-action-button.container.padding-inline-start.medium and an end without an icon by comp.main-action-button.container.padding-inline-end.medium, and the top and bottom by at least comp.main-action-button.container.padding-block.medium (and so on for each size), and SHALL be as wide as that content.
MAB-12 THE main action button SHALL set its label in the text style of its size (comp.main-action-button.label.typescale.medium, and so on) and the label color of its variant and state (comp.main-action-button.filled.label.color for filled at rest, and so on), SHALL NOT truncate it (it stays on one line while it fits, wraps when the layout gives it less width, and the container grows in both axes with it), and SHALL draw the icon, in either form, in the same color at the icon size of its size (comp.main-action-button.icon.size.medium, and so on) with the family and fill of an unselected icon, sys.icon.weight, and an optical size clamped between sys.icon.optical-size.min and sys.icon.optical-size.max.
MAB-13 WHILE it is collapsed THE main action button SHALL hide its label and draw a square container whose side is the height of its size (comp.main-action-button.container.height.medium, and so on) with the corners of its size (comp.main-action-button.container.shape.medium, and so on; a circle where they are full, as in the default system) and its icon centered in it whichever side iconPosition names, and SHALL keep label as its accessible name.
MAB-14 WHEN extended changes THE main action button SHALL change its width between the two forms over comp.main-action-button.motion.resize-duration with comp.main-action-button.motion.resize-easing, keeping its height and corners, fading the label out as it narrows and in as it widens, and moving the icon between its side of the label and the center, and SHALL change at once where motion is reduced; which edge stays in place is decided by the layout that holds it, as for any change of its width.
MAB-15 IF the main action button has no icon THEN THE main action button SHALL draw its extended form whatever extended says (there is no empty collapsed form), and in debug builds report it while extended is false.
MAB-16 WHILE label is not empty THE main action button SHALL expose it as its accessible name, in either form, over a name the product gives it on the element (aria-label or aria-labelledby). IF label is empty THEN THE main action button SHALL draw its collapsed form whatever extended says, SHALL expose the name the product gives it on the element — aria-label, or aria-labelledby naming an element — as its accessible name, and WHILE the product gives it none SHALL in debug builds report that it has no accessible name; this holds over MAB-15 when it has no icon either.
MAB-17 THE main action button SHALL cast the elevation of its variant and state (comp.main-action-button.filled.container.elevation for filled at rest, and so on) outside its container without clipping it, in either form and while it changes between them, and WHEN the elevation or the colors change between states SHALL animate the change over the state duration of its size (comp.main-action-button.motion.state-duration.small, .medium or .large) with comp.main-action-button.motion.state-easing, changing them at once where motion is reduced.
MAB-18 THE main action button SHALL NOT position itself: it SHALL lay out at its own size, or across the width of its container while fullWidth is true (MAB-24), where the layout that holds it places it (normally the inline-end bottom corner of the screen, clear of any navigation bar), and SHALL NOT draw a scrim or move content.
MAB-19 WHEN the layout direction is right-to-left THE main action button SHALL mirror the order of its icon and label (a leading icon on the right, a trailing one on the left) and apply its paddings by logical start and end, SHALL NOT mirror the glyph itself (the icon helper mirrors a glyph the icon set marks, MAB-22), and SHALL grow a ripple from the point of contact as in left-to-right.
MAB-20 THE main action button SHALL expose itself to assistive technology as a button named by label with no pressed, selected, checked or expanded state, and WHEN extended changes SHALL NOT change its role, its name or its focus, and SHALL NOT announce the change.
MAB-21 THE main action button SHALL take its layout direction from where it is used — the direction of the nearest ancestor that sets one, and the platform's own where none does — and SHALL have no direction setting of its own; WHEN that direction changes while the main action button is shown THE main action button SHALL draw itself for the new direction at once, without a motion of its own, keeping what it shows and its state.
MAB-22 WHERE the layout direction is right-to-left THE main action button SHALL draw the glyph of its icon slot mirrored left to right exactly when the system's icon set marks that glyph's name as mirrored or the product forces mirroring for that use, and unmirrored when the product forbids it: the icon helper mirrors the glyph inside its own box, about the box's vertical centre line, changing neither its place, size, color and fill nor the order MAB-19 gives. THE main action button SHALL NOT mirror a glyph itself, and SHALL NOT mirror content the product gives as an image or a view of its own rather than by a glyph's name.
MAB-23 THE main action button SHALL lay out its label as text of its own direction, isolated from the text around it: each takes the base direction of its first strong character, or the layout direction where it has none, so that a left-to-right word, a number with its sign or unit, a telephone number and an address keep their own order in a right-to-left layout and reorder nothing beside them; THE main action button SHALL still place the label and align its lines by the layout direction, not by the text's own.
MAB-24 WHILE fullWidth is true THE main action button SHALL take the whole inline size its container gives it and SHALL draw its extended form whatever extended says — the height, corners, paddings, elevation and states of MAB-11 and MAB-17 — with its icon and label centred in that width as one row, in the order MAB-19 gives them; WHERE that width is narrower than the label THE main action button SHALL wrap the label, its lines centred (MAB-12). WHEN extended changes while fullWidth is true THE main action button SHALL NOT change its form, and in debug builds SHALL report that a full-width button does not collapse. MAB-16 holds over this rule: a button with no label draws its collapsed form, at its own size, and is reported.
MAB-25 WHERE the platform has ARIA attributes (the web), WHEN the product sets an aria- attribute on the host, by the attribute or by the ARIA property that reflects it, THE main action button SHALL move it to the data-aria- attribute of the same name, so that the host is no second node with its name, description or state, and SHALL expose it on the element that carries its role — an id reference by the elements it names in the host's tree or a tree around it, an error message as part of the description while the main action button is invalid — except those the main action button owns (aria-disabled), which it SHALL move and not expose. WHEN the product removes the aria- attribute or its data-aria- twin, or sets the ARIA property that reflects it (ariaLabel, ariaDescribedByElements…) to null, THE main action button SHALL take it off that element. WHEN the product sets an aria- attribute the main action button owns THE main action button SHALL report it in debug builds.

प्लैटफ़ॉर्म के अनुसार नामों का मिलान

पैरिटी का मतलब एक जैसे API नहीं है। हर प्लैटफ़ॉर्म एक ही कॉन्ट्रैक्ट को अपने तरीक़े से व्यक्त करता है।

स्पेक Web SwiftUI Jetpack Compose Flutter React Native
कंपोनेंट tanrei-main-action-button TanreiMainActionButton TanreiMainActionButton TanreiMainActionButton MainActionButton
variant · प्रॉपर्टी variant variant variant variant variant
size · प्रॉपर्टी size size size size size
extended · प्रॉपर्टी extended isExtended expanded isExtended extended
fullWidth · प्रॉपर्टी fullWidth fullWidth fullWidth fullWidth fullWidth
iconPosition · प्रॉपर्टी iconPosition iconPosition iconPosition iconPosition iconPosition
disabled · प्रॉपर्टी disabled disabled enabled onPressed disabled
label · प्रॉपर्टी label title text label label
click · इवेंट click action onClick onPressed onPress
टिप्पणियाँ The icon is the icon slot (a glyph of the icon font). extended is a boolean property that defaults to true; its attribute is the inverse collapsed, because an HTML boolean attribute cannot default to true. iconPosition is the icon-position attribute. The host has no aria-expanded or aria-pressed (MAB-20). The element is inline; the page positions it (for example with position: fixed or a sticky container). fullWidth is the full-width attribute: the host is then a block-level flex box as wide as its container, and the native <button> fills it (MAB-24). The initializer takes the title first, as Button(_:action:) does, and an optional icon name. disabled follows .disabled(_:). The view is placed by the caller, typically in an .overlay(alignment: .bottomTrailing). Compose idiom (as Material 3's extended FAB composable): expanded collapses it; enabled is the inverse flag; text is a String so it is also the content description. Placed through Scaffold's floatingActionButton slot or by the caller. Flutter idiom (as Material 3's extended FAB): isExtended collapses it and a null onPressed disables it. Placed through Scaffold.floatingActionButton or by the caller; it adds no Hero. The icon is the icon prop (a glyph name). The caller positions it (for example absolutely inside the screen's root view).

टोकन

टोकन किसका एलियास रिज़ॉल्व किया गया मान (लाइट)
--tanrei-comp-main-action-button-container-gap-large sys.space.space200 16px
--tanrei-comp-main-action-button-container-gap-medium sys.space.space150 12px
--tanrei-comp-main-action-button-container-gap-small sys.space.space100 8px
--tanrei-comp-main-action-button-container-height-large — 96px
--tanrei-comp-main-action-button-container-height-medium — 56px
--tanrei-comp-main-action-button-container-height-small — 40px
--tanrei-comp-main-action-button-container-padding-block-large — 6px
--tanrei-comp-main-action-button-container-padding-block-medium — 6px
--tanrei-comp-main-action-button-container-padding-block-small — 6px
--tanrei-comp-main-action-button-container-padding-inline-end-with-icon-large sys.space.space400 32px
--tanrei-comp-main-action-button-container-padding-inline-end-with-icon-medium sys.space.space250 20px
--tanrei-comp-main-action-button-container-padding-inline-end-with-icon-small sys.space.space150 12px
--tanrei-comp-main-action-button-container-padding-inline-end-large sys.space.space400 32px
--tanrei-comp-main-action-button-container-padding-inline-end-medium sys.space.space250 20px
--tanrei-comp-main-action-button-container-padding-inline-end-small sys.space.space200 16px
--tanrei-comp-main-action-button-container-padding-inline-start-with-icon-large sys.space.space300 24px
--tanrei-comp-main-action-button-container-padding-inline-start-with-icon-medium sys.space.space200 16px
--tanrei-comp-main-action-button-container-padding-inline-start-with-icon-small sys.space.space150 12px
--tanrei-comp-main-action-button-container-padding-inline-start-large sys.space.space400 32px
--tanrei-comp-main-action-button-container-padding-inline-start-medium sys.space.space250 20px
--tanrei-comp-main-action-button-container-padding-inline-start-small sys.space.space200 16px
--tanrei-comp-main-action-button-container-shape-large sys.shape.corner.full 9999px
--tanrei-comp-main-action-button-container-shape-medium sys.shape.corner.full 9999px
--tanrei-comp-main-action-button-container-shape-small sys.shape.corner.full 9999px
--tanrei-comp-main-action-button-disabled-opacity — 1
--tanrei-comp-main-action-button-filled-container-color sys.color.primary #1b1b1b
--tanrei-comp-main-action-button-filled-container-elevation sys.elevation.level3 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 4px 8px -4px rgb(0 0 0 / 0.04), 0px 16px 24px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-filled-disabled-container-color — #1b1b1b · 12%
--tanrei-comp-main-action-button-filled-disabled-container-elevation —
--tanrei-comp-main-action-button-filled-disabled-label-color — #1b1b1b · 38%
--tanrei-comp-main-action-button-filled-disabled-state-layer-color — #1b1b1b · 38%
--tanrei-comp-main-action-button-filled-focused-container-color — #323232
--tanrei-comp-main-action-button-filled-focused-container-elevation — 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 4px 8px -4px rgb(0 0 0 / 0.04), 0px 16px 24px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-filled-focused-label-color — #ffffff
--tanrei-comp-main-action-button-filled-focused-state-layer-color — #ffffff
--tanrei-comp-main-action-button-filled-hovered-container-color — #2d2d2d
--tanrei-comp-main-action-button-filled-hovered-container-elevation — 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 8px 16px -4px rgb(0 0 0 / 0.04), 0px 24px 32px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-filled-hovered-label-color — #ffffff
--tanrei-comp-main-action-button-filled-hovered-state-layer-color — #ffffff
--tanrei-comp-main-action-button-filled-label-color sys.color.on-primary #ffffff
--tanrei-comp-main-action-button-filled-pressed-container-color — #323232
--tanrei-comp-main-action-button-filled-pressed-container-elevation — 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 4px 8px -4px rgb(0 0 0 / 0.04), 0px 16px 24px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-filled-pressed-label-color — #ffffff
--tanrei-comp-main-action-button-filled-pressed-state-layer-color — #ffffff
--tanrei-comp-main-action-button-filled-state-layer-color comp.main-action-button.filled.label.color #ffffff
--tanrei-comp-main-action-button-focused-opacity — 1
--tanrei-comp-main-action-button-hovered-opacity — 1
--tanrei-comp-main-action-button-icon-size-large sys.icon.large 32px
--tanrei-comp-main-action-button-icon-size-medium sys.icon.medium 24px
--tanrei-comp-main-action-button-icon-size-small sys.icon.medium 24px
--tanrei-comp-main-action-button-motion-feedback-duration sys.motion.role.feedback 450ms
--tanrei-comp-main-action-button-motion-resize-duration sys.motion.role.resize.large 400ms
--tanrei-comp-main-action-button-motion-resize-easing sys.motion.easing.spatial cubic-bezier(0.2, 0, 0, 1)
--tanrei-comp-main-action-button-motion-state-duration-large sys.motion.role.state.large 250ms
--tanrei-comp-main-action-button-motion-state-duration-medium sys.motion.role.state.default 250ms
--tanrei-comp-main-action-button-motion-state-duration-small sys.motion.role.state.compact 200ms
--tanrei-comp-main-action-button-motion-state-easing sys.motion.easing.state cubic-bezier(0.2, 0, 0, 1)
--tanrei-comp-main-action-button-pressed-opacity — 1
--tanrei-comp-main-action-button-surface-container-color sys.color.surface-container-lowest #ffffff
--tanrei-comp-main-action-button-surface-container-elevation sys.elevation.level3 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 4px 8px -4px rgb(0 0 0 / 0.04), 0px 16px 24px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-surface-disabled-container-color — #1b1b1b · 12%
--tanrei-comp-main-action-button-surface-disabled-container-elevation —
--tanrei-comp-main-action-button-surface-disabled-label-color — #1b1b1b · 38%
--tanrei-comp-main-action-button-surface-disabled-state-layer-color — #1b1b1b · 38%
--tanrei-comp-main-action-button-surface-focused-container-color — #e8e8e8
--tanrei-comp-main-action-button-surface-focused-container-elevation — 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 4px 8px -4px rgb(0 0 0 / 0.04), 0px 16px 24px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-surface-focused-label-color — #1b1b1b
--tanrei-comp-main-action-button-surface-focused-state-layer-color — #1b1b1b
--tanrei-comp-main-action-button-surface-hovered-container-color — #ededed
--tanrei-comp-main-action-button-surface-hovered-container-elevation — 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 8px 16px -4px rgb(0 0 0 / 0.04), 0px 24px 32px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-surface-hovered-label-color — #1b1b1b
--tanrei-comp-main-action-button-surface-hovered-state-layer-color — #1b1b1b
--tanrei-comp-main-action-button-surface-label-color sys.color.primary #1b1b1b
--tanrei-comp-main-action-button-surface-pressed-container-color — #e8e8e8
--tanrei-comp-main-action-button-surface-pressed-container-elevation — 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 4px 8px -4px rgb(0 0 0 / 0.04), 0px 16px 24px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-surface-pressed-label-color — #1b1b1b
--tanrei-comp-main-action-button-surface-pressed-state-layer-color — #1b1b1b
--tanrei-comp-main-action-button-surface-state-layer-color comp.main-action-button.surface.label.color #1b1b1b
--tanrei-comp-main-action-button-tonal-container-color sys.color.secondary-container #eeeeee
--tanrei-comp-main-action-button-tonal-container-elevation sys.elevation.level3 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 4px 8px -4px rgb(0 0 0 / 0.04), 0px 16px 24px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-tonal-disabled-container-color — #1b1b1b · 12%
--tanrei-comp-main-action-button-tonal-disabled-container-elevation —
--tanrei-comp-main-action-button-tonal-disabled-label-color — #1b1b1b · 38%
--tanrei-comp-main-action-button-tonal-disabled-state-layer-color — #1b1b1b · 38%
--tanrei-comp-main-action-button-tonal-focused-container-color — #dadada
--tanrei-comp-main-action-button-tonal-focused-container-elevation — 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 4px 8px -4px rgb(0 0 0 / 0.04), 0px 16px 24px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-tonal-focused-label-color — #262626
--tanrei-comp-main-action-button-tonal-focused-state-layer-color — #262626
--tanrei-comp-main-action-button-tonal-hovered-container-color — #dedede
--tanrei-comp-main-action-button-tonal-hovered-container-elevation — 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 8px 16px -4px rgb(0 0 0 / 0.04), 0px 24px 32px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-tonal-hovered-label-color — #262626
--tanrei-comp-main-action-button-tonal-hovered-state-layer-color — #262626
--tanrei-comp-main-action-button-tonal-label-color sys.color.on-secondary-container #262626
--tanrei-comp-main-action-button-tonal-pressed-container-color — #dadada
--tanrei-comp-main-action-button-tonal-pressed-container-elevation — 0px 0px 0px 1px rgb(0 0 0 / 0.08), 0px 1px 1px 0px rgb(0 0 0 / 0.04), 0px 4px 8px -4px rgb(0 0 0 / 0.04), 0px 16px 24px -8px rgb(0 0 0 / 0.06)
--tanrei-comp-main-action-button-tonal-pressed-label-color — #262626
--tanrei-comp-main-action-button-tonal-pressed-state-layer-color — #262626
--tanrei-comp-main-action-button-tonal-state-layer-color comp.main-action-button.tonal.label.color #262626
--tanrei-comp-main-action-button-label-typescale-large sys.typescale.heading-5 500 16px/1.5
--tanrei-comp-main-action-button-label-typescale-medium sys.typescale.label 500 14px/1.4286
--tanrei-comp-main-action-button-label-typescale-small sys.typescale.label 500 14px/1.4286

फ़िक्स्चर

मानक रेंडरिंग। हर प्लैटफ़ॉर्म हर फ़िक्स्चर का स्नैपशॉट एक ही ID से लेता है, ताकि नतीजों की तुलना की जा सके।

इससे जनरेट किया गया: specs/main-action-button.spec.json, tokens/comp/main-action-button.tokens.json, design/tokens/

दिशानिर्देश

कब इस्तेमाल करें

मुख्य ऐक्शन बटन उस क्रिया के लिए इस्तेमाल करें जिसे करने ज़्यादातर लोग उस स्क्रीन पर आते हैं, जब उसे पहुँच में रहना चाहिए, चाहे वे स्क्रॉल करके कहीं भी पहुँचे हों: संदेश लिखना, आइटम जोड़ना, रिकॉर्डिंग शुरू करना। एक स्क्रीन पर यह एक होता है, या होता ही नहीं। बहुत-सी स्क्रीन को इसकी ज़रूरत नहीं होती: सेटिंग पेज या पढ़ने वाले व्यू में ऐसी कोई अकेली क्रिया नहीं होती जो उसके ऊपर तैरने लायक़ हो।

  • जो क्रिया किसी फ़ॉर्म, डायलॉग या कॉन्टेंट के किसी एक आइटम की है, उसके लिए वहीं बटन इस्तेमाल करें जहाँ वह कॉन्टेंट है।
  • मौजूदा स्क्रीन या चयन पर कई क्रियाओं के लिए टूलबार इस्तेमाल करें।
  • जब मुख्य क्रिया कुछ संबंधित रूपों में आती हो (नया दस्तावेज़, फ़ोल्डर या अपलोड), तो मुख्य ऐक्शन बटन से एक बॉटम शीट खुलवाएँ जिसमें उनकी सूची हो। FAB मेन्यू यह काम m3-like लेयर के सिस्टम में करता है, जहाँ वह रहता है; डिफ़ॉल्ट सिस्टम में यह नहीं है।
  • यह एक क्रिया करता है और कोई गंतव्य नहीं लेता। जो कंट्रोल लोगों को सिर्फ़ कहीं और ले जाता है, वह लिंक है: href वाला बटन।

फैला हुआ या सिमटा हुआ

शुरुआत फैले हुए रूप से करें। लिखा हुआ नाम ही लोगों को बताता है कि बटन क्या करता है, और अकेला आइकन तभी सुरक्षित है जब वे उसे सीख चुके हों।

इसे तब समेटें जब लेबल जितना देता है उससे ज़्यादा लेता हो: जब कॉन्टेंट स्क्रॉल हो रहा हो और बटन उसे ढक रहा हो, या सँकरी विंडो में। जब जगह हो, जैसे लिस्ट के सबसे ऊपर लौटने पर, तो इसे फिर फैलाएँ। यह बदलाव आपको करना है, extended सेट करके; बटन को दबाने से उसका रूप कभी नहीं बदलता।

  • बदलते समय बटन अपनी ऊँचाई और अपने कोने बनाए रखता है, और कौन-सा किनारा अपनी जगह रहेगा, यह आपके लेआउट का फ़ैसला है। इनलाइन-एंड पर टिका हो, तो यह उसी किनारे की ओर सिमटता है।
  • बिना आइकन वाला बटन फैला हुआ ही रहता है, क्योंकि सिमटने के लिए कुछ होगा ही नहीं। बिना लेबल वाला बटन सिमटा हुआ रूप बनाता है और डीबग बिल्ड में उसकी रिपोर्ट की जाती है: उसका कोई नाम नहीं है।
  • जहाँ मोशन कम किया गया है, वहाँ रूप तुरंत बदलता है।

वेरिएंट चुनना

वेरिएंट एम्फ़ेसिस किसके लिए
Filled (डिफ़ॉल्ट) सबसे ज़्यादा पूरी ताक़त के साथ स्क्रीन की मुख्य क्रिया।
Tonal ज़्यादा उस स्क्रीन की मुख्य क्रिया जिसका कॉन्टेंट आगे रहना चाहिए।
Surface तटस्थ उस कॉन्टेंट के ऊपर की मुख्य क्रिया जिसमें पहले से रंग है, जैसे नक़्शा या फ़ोटो, जहाँ रंगीन कंटेनर उससे होड़ करता।

कोई डिज़ाइन सिस्टम अपने वेरिएंट जोड़ सकता है।

साइज़ चुनना

साइज़ डिफ़ॉल्ट सिस्टम में ऊँचाई किसके लिए
Small 40 medium बटन के बग़ल की दूसरी, संबंधित क्रिया, या घना लेआउट।
Medium (डिफ़ॉल्ट) 56 ज़्यादातर स्क्रीन की मुख्य क्रिया।
Large 96 चौड़ी या लगभग ख़ाली स्क्रीन की क्रिया, जहाँ medium बटन खो जाता।

ऊँचाई ही सिमटे हुए रूप की भुजा भी है, इसलिए एक बटन सिमटते और फैलते समय अपनी ऊँचाई बनाए रखता है।

स्थान

बटन कोई स्क्रिम नहीं बनाता और कोई कॉन्टेंट नहीं खिसकाता। इसे कॉन्टेंट के ऊपर रखें, आम तौर पर इनलाइन-एंड वाले निचले कोने में, और इसे नेविगेशन बार, डॉक किए हुए टूलबार और सिस्टम के इनसेट से हटाकर रखें। स्क्रॉल होने वाले कॉन्टेंट के अंत में जगह छोड़ें, ताकि बटन आख़िरी आइटम को कभी हमेशा के लिए न ढके। इसकी शैडो इसके कंटेनर के बाहर पड़ती है: अगर इसे रखने वाला कंटेनर क्लिप करता है, तो इसे जगह दें।

पूरी चौड़ाई

full-width देने पर बटन अपने कंटेनर जितना चौड़ा हो जाता है, उसका आइकन और लेबल बीच में: किसी संकरी स्क्रीन पर उसके निचले हिस्से में फैली स्क्रीन की इकलौती क्रिया, जैसे “चेकआउट करें” या “भेजें”। पूरी चौड़ाई वाला बटन हमेशा फैला रहता है: कंटेंट स्क्रॉल होते समय वह सिमटता नहीं, और extended को false करने पर डीबग बिल्ड में इसकी रिपोर्ट होती है। उसकी ऊँचाई, कोने और एलिवेशन उसके साइज़ के ही रहते हैं, और जो लेबल न समाए वह अगली लाइन में चला जाता है। वह अब भी ख़ुद को नहीं रखता: उसे स्क्रीन के नीचे वाले कंटेनर में रखें।

पूरी चौड़ाई वाला मुख्य क्रिया बटन

shopping_cart

करें

  • इस पर क्रिया का लेबल क्रिया-शब्द के रूप में लिखें, या क्रिया-शब्द और संज्ञा के रूप में: लिखें, नया इवेंट, फ़ोटो जोड़ें।
  • ऐसा ग्लिफ़ चुनें जिसे लोग पहले से उस क्रिया से जोड़ते हैं, जैसे लिखने के लिए edit या बनाने के लिए add।
  • जो ग्लिफ़ यह दिखाता है कि क्रिया किधर ले जाती है, जैसे “आगे” का तीर, उसके लिए iconPosition को trailing करें।
  • जिस भी स्क्रीन पर यह हो, वहाँ इसे एक ही जगह रखें।
  • जब किसी स्क्रीन पर इसकी क्रिया उपलब्ध न हो, तो इसे छिपा दें। कॉन्टेंट के ऊपर तैरते अक्षम बटन से यह आम तौर पर लोगों के ज़्यादा काम आता है।

न करें

  • एक स्क्रीन पर एक ही साइज़ के दो मुख्य ऐक्शन बटन न रखें। अगर दो क्रियाएँ बराबर महत्वपूर्ण लगती हैं, तो दोनों में से कोई मुख्य नहीं है: कॉन्टेंट के भीतर बटन इस्तेमाल करें।
  • इसे छोटी-मोटी, विनाशकारी या सिर्फ़ नेविगेशन वाली क्रियाओं के लिए इस्तेमाल न करें, जैसे “हटाएँ”, “सेटिंग” या “पीछे”।
  • इसे टॉगल की तरह इस्तेमाल न करें, और कोई स्टेट दिखाने के लिए इसका लेबल या आइकन न बदलें।
  • जिस स्क्रीन को लोग पहली बार देख रहे हों, वहाँ इसे न समेटें, जब कुछ और यह न बताता हो कि आइकन का क्या मतलब है।
  • इसे वह कॉन्टेंट न ढकने दें जिसकी लोगों को यह तय करने के लिए ज़रूरत है कि इसे दबाएँ या नहीं।

कॉन्टेंट

लेबल सेंटेंस केस में होते हैं और उनके अंत में कोई विराम चिह्न नहीं होता। एक या दो शब्दों का लक्ष्य रखें। लेबल कटता नहीं: जब तक समाता है, एक ही पंक्ति में रहता है, और जब लेआउट उसे कम चौड़ाई देता है तो अगली पंक्ति में जाता है।

सुलभता

रोल
button
लेबलिंग
label is the accessible name, whether it is shown or collapsed away. The icon is decorative to assistive technology. A tooltip may show the same text to sighted pointer users while it is collapsed, but it never replaces label.
न्यूनतम टार्गेट
दिखने वाला आकार छोटा होने पर भी हिट एरिया न्यूनतम टार्गेट साइज़ को पूरा करता है। minimum 32px · pointer 44px · spacing 8px · touch 48px

कीबोर्ड

कुंजियाँ क्रिया
Tab Moves focus to the main action button.
Enter / Space Activates it.

टिप्पणियाँ

  • It is an action, never a toggle. Collapsing and extending change what is drawn, not what is announced: the role stays button, the name stays label, and there is no expanded state to report (MAB-20).
  • Its place in the focus and reading order is where the layout puts it in the element tree, not where it is drawn. Put it where its action belongs: after the content it acts on, or first when it is the screen's reason to exist.
  • Extended, text must remain readable at 200% text size: the container grows, the label never truncates. Collapsed, the icon is not text: where sizes are points or dp (SwiftUI, Compose, Flutter, React Native), text size leaves the square and the icon as they are; on the web every Tanrei size follows the root font size (rem), so the square and its icon grow together and stay square and whole. Either way the label is still announced.
  • A trailing icon that points (an arrow) keeps its glyph in right-to-left layouts; the product chooses the glyph that points the right way for the direction.
  • How a state looks is a value decision of the active design system; components read the state's tokens and never compute the effect themselves.

इससे जनरेट किया गया: specs/main-action-button.spec.json, tokens/sys/measure.tokens.json

कंपोनेंट क्या सँभालता है

  • यह दोनों रूपों में label से नाम पाने वाला एक बटन है। आइकन सहायक तकनीक से छिपा रहता है।
  • समेटना और फैलाना वह बदलते हैं जो बनता है, वह नहीं जो पढ़कर सुनाया जाता है: रोल, नाम और फ़ोकस जैसे हैं वैसे रहते हैं, कुछ भी पढ़कर नहीं सुनाया जाता, और दबाया हुआ या expanded जैसा कोई स्टेट नहीं है।
  • Enter और Space इसे सक्रिय करती हैं। अक्षम होने पर यह कुछ एमिट नहीं करता, फ़ोकस के क्रम से बाहर हो जाता है और सहायक तकनीक को अक्षम के रूप में मिलता है।
  • इसका हिट एरिया हर साइज़ पर न्यूनतम टार्गेट पूरा करता है, small समेत।
  • यह फ़ोकस इंडिकेटर सिर्फ़ कीबोर्ड फ़ोकस के लिए दिखाता है, बिना ऐनिमेशन के।
  • फैले हुए रूप में कंटेनर टेक्स्ट साइज़ के साथ बढ़ता है और लेबल कभी कटता नहीं। सिमटे हुए रूप में आइकन टेक्स्ट नहीं है। वेब पर Tanrei का हर साइज़ रूट फ़ॉन्ट साइज़ के अनुसार चलता है, इसलिए वर्ग और उसका आइकन साथ-साथ बढ़ते हैं और वर्ग, वर्ग ही रहता है।
  • दाएँ से बाएँ वाले लेआउट में आइकन और लेबल अपनी ओर बदल लेते हैं, और पैडिंग उनके अनुसार चलती है। ख़ुद ग्लिफ़ सिर्फ़ तब मिरर किया जाता है जब आइकन सेट उसे दिशा दिखाने वाला बताता है।
  • डीबग बिल्ड बिना लेबल वाले बटन की, और बिना आइकन वाले सिमटे हुए बटन की रिपोर्ट करते हैं।

आपको क्या करना है

  • इसे हमेशा एक label दें, अपने प्रॉडक्ट की भाषा में, तब भी जब यह हमेशा सिमटा हुआ ही रहने वाला हो।
  • इसे एलिमेंट ट्री में वहाँ रखें जहाँ इसकी क्रिया की जगह है: उस कॉन्टेंट के बाद जिस पर यह काम करता है, या सबसे पहले जब स्क्रीन इसी के लिए बनी हो। सहायक तकनीक और Tab कुंजी इस तक ट्री के क्रम में पहुँचती हैं, उस जगह के हिसाब से नहीं जहाँ यह बना है।
  • जब यह सिमटा हुआ हो, तो पॉइंटर इस्तेमाल करने वालों के लिए उसी टेक्स्ट वाले टूलटिप देने के बारे में सोचें। टूलटिप कभी label की जगह नहीं लेता।
  • पक्का करें कि यह उस कॉन्टेंट या कंट्रोल को न छिपाए जिस पर कीबोर्ड फ़ोकस है। कॉन्टेंट के अंत में जगह छोड़ें, या बटन को रास्ते से हटा दें।
  • कोई अर्थ बताने के लिए वेरिएंट के रंग पर निर्भर न रहें। उसे लेबल में कहें।