التخطّي إلى المحتوى
menumenu tanreiexpand_morecontrasttranslate
tanreiexpand_more
البدءWebReactSwiftUIJetpack ComposeFlutterReact Nativeالإعدادات الجاهزةنظام التصميم الخاص بكاستخدام Tanrei مع وكلاء الذكاء الاصطناعيالعلامة التجاريةرموز التصميمأنظمة التصميم والتخصيصTheme Studioاللونالطباعةالأيقوناتالشكلالارتفاعالحركةحالات التفاعلالسلوكالتخطيطإمكانية الوصولالكلماترموز الألوانرموز السلّم الطباعيرموز الشكلرموز الارتفاعرموز الحركةرموز الحالةرموز التباعد والقياسالمكوّناتالزرزر الإجراء الرئيسيالزر المقسَّممجموعة الأزرارزر مع قائمةشريط الأدواتزر النسخخانة الاختيارزر الاختيارمفتاح التبديلالرقاقةقائمة الخياراتشريط التمريرحقل شريط التمريرالتقويمDateTimePickerمجموعة الحقولمجموعة أزرار الاختيارمجموعة خانات الاختيارعنصر الاختيارحقل الاختيارشريط القوائمرفع الملفاتمنتقي الملفات متقدّمساحة الإفلاتحقل إدخال النص متقدّمحقل النصحقل الرقاقاتالحقلمربع التحرير والسرد متقدّمحقل التحرير والسردحقل إدخال العدد متقدّمحقل العددحقل إدخال اللون متقدّمحقل اللونحقل إدخال الرمز لمرة واحدة متقدّمحقل الرمز لمرة واحدةحقل إدخال النص المدمج متقدّممربع كتابة الرسائلالبطاقةالفاصلالطبقة النمطية متقدّممربع الحوارالقائمة (list)صف القائمةاللوحة السفليةاللوحة الجانبيةالعرض الدوّاركتلة الشيفرةالجدولاللوحة المنبثقةالخطواتالأكورديونقائمة الوصفالشكل التوضيحيهيكل التطبيقرأس الصفحةالعرض الشجريالخط الزمنيمعاينة الصورمقبض تغيير الحجمالإطار القابل لتغيير الحجممنطقة التمريرالشارةمؤشر التقدمالعدّادعارض الأرقام المتحرّكمؤشر التحميلشريط الإشعار (Snackbar)التلميحاختصار لوحة المفاتيحالوسمالشيفرة المضمَّنةالتنويهالصورة الرمزيةالحالة الفارغةمجموعة الوسومهيكل التحميلعنصر الملفمربع اللونالنص المتحركعلامات التبويبعرض التبويباتشريط التطبيقشريط التنقلدرج التنقلالبحثالرابطالتنقل بين الصفحاتروابط السابق والتاليمؤشر الخطواتمسار التنقلجدول المحتوياتبطاقة الرابطقائمة FABالحالةكيف يُبنى Tanreiالمساهمةالترخيص والإسناد
الرئيسيةالمكوّناتقائمة الوصف

قائمة الوصف

تعرض ما يُعرف عن شيء واحد معلوماتٍ مسمّاة، لكل منها مصطلح هادئ وقيمة تجيب عنه، والمصطلحات بجانب قيمها أو فوقها أو تحت رقم كبير. يحدّد تخطيطَها عرضُها هي، وليست عنصر تحكم أبدًا.

content_copyعرض بتنسيق Markdown
الفئة
الاحتواء
الرموز
comp.description-list
المستوى
أساسي

نظرة عامة

Web
tanrei-description-list
schedule
SwiftUI
TanreiDescriptionList
radio_button_unchecked
Jetpack Compose
TanreiDescriptionList
radio_button_unchecked
Flutter
TanreiDescriptionList
radio_button_unchecked
React Native
DescriptionList
radio_button_unchecked

مولَّد من docs/status/status.json, specs/description-list.spec.json

معلومات طلب

الطلب
A-20418
تاريخ الطلب
6 أكتوبر 2026
يُشحن إلى
4-2-8 Shibakoen, Minato, Tokyo
الحالة
الإجمالي
¥ 12,800

قائمة الوصف (description list) تعرض معلومات شيء واحد: طلب، أو ملف، أو حساب، أو مكوّن. كل معلومة مصطلح وقيمة تجيب عنه. المصطلح تسمية هادئة؛ والقيمة هي ما جاء الشخص من أجله.

ثلاثة تخطيطات ترسم المعلومات نفسها:

layout ما يرسمه يُستخدم لـ
inline (الافتراضي) المصطلح بجانب قيمته. كل المصطلحات في عمود واحد، عرضه عرض أوسع مصطلح. كتلة معلومات يبحث فيها الشخص عما يريد.
stacked المصطلح فوق قيمته. القيم الطويلة أو المصطلحات الطويلة، والمعلومات في عدة أعمدة.
stat القيمة أولًا، رقمًا كبيرًا، والمصطلح تحتها تسميةً لها. الأرقام القليلة التي تُفتتح بها الشاشة.

على الويب هي <tanrei-description-list> حول عنصر <dl> الأصلي الذي تكتبه أنت. ليس للعنصر جذر ظل (shadow root)، ولا يعطي القائمة دورًا، فيلقى قارئ الشاشة والزاحف والصفحة التي بلا سكربت كلها قائمة وصف عادية من HTML. والمنصات الأخرى لم تنفّذها بعد.

الاستخدام

<link rel="stylesheet" href="@tanrei/web/description-list.css" />

<tanrei-description-list>
  <dl>
    <div><dt>الطلب</dt><dd>A-20418</dd></div>
    <div><dt>المالكون</dt><dd>Aiko Tanaka</dd><dd>Samir Haddad</dd></div>
    <div>
      <dt>الحالة</dt>
      <dd><tanrei-tag size="small" status="success" label="تم الشحن"></tanrei-tag></dd>
    </div>
  </dl>
</tanrei-description-list>

<script type="module">
  import '@tanrei/web/components/description-list';
</script>
import { DescriptionList } from '@tanrei/react';
import '@tanrei/web/description-list.css';

<DescriptionList layout="stat" columns={3}>
  <dl>
    {figures.map((figure) => (
      <div key={figure.label}>
        <dt>{figure.label}</dt>
        <dd>{figure.value}</dd>
      </div>
    ))}
  </dl>
</DescriptionList>

الملف @tanrei/web/description-list.css يرسم القائمة كلها قبل أن يعمل أي سكربت. والعنصر يضيف ورقة الأنماط نفسها إلى الصفحة من تلقاء نفسه، فالصفحة التي تحمّل السكربت وحده تحصل هي أيضًا على قائمة مرسومة، بعد لحظة.

ما تكتبه

الجزء على الويب
معلومة عنصر <div> داخل <dl>، حول عنصر <dt> واحد وعناصر <dd> التابعة له.
مصطلح عنصر <dt>. نص، أو مكوّن تشرحه القيمة (وسم في مفتاح توضيحي). لا تكتب نقطتين.
قيمة عنصر <dd>. نص، أو مكوّن، أو لا شيء.
عدة قيم عدة عناصر <dd> في معلومة واحدة. تُرسم كل منها على سطر خاص بها.

عنصر <dl> الذي بلا مجموعات <div>، كما تكتبه بعض محوِّلات Markdown، يُرسم مع ذلك في عمود واحد، بالتخطيط inline أو stacked. أما columns والتخطيط stat فيحتاجان إلى المجموعات.

المواصفات

التخطيط stat: الأرقام التي تُفتتح بها الشاشة

طلبات هذا الأسبوع
1,284
بزيادة 12% عن الأسبوع الماضي
سُلِّمت في موعدها
98.6%
وسيط زمن البناء
4 د 12 ث

التخطيط stacked في أعمدة: يقلّ عددها حين تضيق القائمة

مخطَّط
له مواصفة، ولم يُنفَّذ بعد على هذه المنصة.
متأخر
منفَّذ، لكنه لم يلحق بالمواصفة الحالية.
Alpha
منفَّذ ومختبَر، وقد تتغير الواجهة البرمجية.
Beta
استقرت الواجهة البرمجية، والمطلوب بلاغات من الاستخدام الفعلي.
Stable
يشمله التعهد الخاص بترقيم الإصدارات.
مهمَل
ما زال متاحًا، وقد سُمّي بديله.

الكثافة compact، والفصل بالفراغ: معلومات يمسحها الشخص بنظره

القيمة
#1b1c1e
→ ref.palette.neutral.10
النوع
اسم بديل · color
الوصف
النص ورسوم الأيقونات على أي سطح أو حاوية سطح.

البنية

الجزء الوصف
1 container The list's box: as wide as its layout gives it, as tall as its facts. It has no fill, edge, corner or outer space of its own, and carries no state: nothing about it answers a pointer, a press or focus.
2 fact One term with the value or values that answer it. Facts are drawn in the order given: one under another, or in equal columns.
3 term The name of a fact, in a label style and a quieter color than its value: beside the value in a column all terms share, above it, or — in the stat layout — under it as the figure's label. Text, or a component of the product's (a tag that is explained by the value).
4 value What answers the term: text that wraps inside its column, or a component of the product's (a tag, a link, inline code, a button). A fact may have several, each on a line of its own. In the stat layout the first value is the figure, in a heading style.
5 divider · اختياري The one hairline between a fact and the fact below it, where facts are told apart by a line.

الخصائص

الخاصية النوع القيمة الافتراضية الوصف
layout inline | stacked | stat "inline" How a fact is drawn. inline: the term beside its value, every term in one column as wide as the widest term; the list draws its terms above their values by itself while it is too narrow for that (DSL-4). stacked: the term above its value, for long values or long terms, and for facts in several columns. stat: the value first, as a large figure, with the term under it as its label — the few numbers a screen opens with.
columns number 1 The most columns of facts the list draws in the stacked and stat layouts; it draws fewer while it is too narrow for that many (DSL-7), and never more than it has facts. An inline list is one column whatever this says.
density regular | compact "regular" How close the facts are and how large their text is. Regular is for facts a person reads: a page, a card, a dialog. Compact (smaller text, half the space) is for facts a person scans: a side panel, an inspector, a card of many figures. A design system may add values.
separation auto | divider | gap "auto" How a fact is told from the fact below it. divider: one hairline between them. gap: empty space and no line. Auto takes comp.description-list.separation, the design system's answer (divider in the default system).

العناصر

أنواع العناصر التي يكررها المكوّن. يسرد كل نموذج اختبار عناصره بالترتيب، وتسمّي كل منصة كل نوع بأسلوبها.

fact · مجموعة — تحتوي عناصر

One fact: a term, and the value or values that answer it.

الخاصية النوع القيمة الافتراضية الوصف
term string "" The fact's name, as short as it can be and without a colon ("Ships to"). In the stat layout it is the label under the figure ("orders this week").
المنفذ الوصف
term What the term holds in place of plain text: a tag that the value explains (a legend), inline code, text with a glyph. The list places it and styles nothing inside it (DSL-10).
المواصفة Web SwiftUI Jetpack Compose Flutter React Native
العنصر div TanreiFact fact TanreiFact DescriptionList.Fact
term · الخاصية dt term term term term
ملاحظات A <div> inside the <dl> that groups one <dt> (its children are the term: text, or the term slot's content) with its <dd>s. A second <dt> in one group keeps working as HTML and is drawn under the first. TanreiFact("Category", value: "Actions"), or with view builders for the term and the values. A call in the list's scope: fact("Category", "Actions"), or fact(term = { … }) { value { … } }. TanreiFact(term: "Category", value: "Actions"); termChild: and values: take widgets. term takes a string or an element; the children are the values.

value · مجموعة — تحتوي عناصر

One value of a fact: plain text, a component of the product's, or nothing.

المنفذ الوصف
content What the value holds in place of plain text: a tag, a link, inline code, a button, a short list, any view of the product's. The list places it and styles nothing inside it (DSL-10).
المواصفة Web SwiftUI Jetpack Compose Flutter React Native
العنصر dd TanreiFactValue value TanreiFactValue DescriptionList.Value
ملاحظات A <dd>; its children are the content. A string or a view builder; several in one fact's builder are several values. value(text) or value { content } in a fact's scope. TanreiFactValue.text("…") or TanreiFactValue(child: …). Its children are a string or elements. A fact whose children are a string has that one value.

tag

A tag placed in a value: the Tag component, as it is drawn anywhere else.

الخاصية النوع القيمة الافتراضية الوصف
label string "" The tag's text.
variant tonal | outlined | filled "tonal" The tag's look.
status default | info | warning | error | success "default" What the tag reports.
size small | medium "medium" The tag's size; small in a value, so that it does not make its line taller.
المواصفة Web SwiftUI Jetpack Compose Flutter React Native
العنصر tanrei-tag TanreiTag TanreiTag TanreiTag Tag
label · الخاصية label title label label label
variant · الخاصية variant variant variant variant variant
status · الخاصية status status status status status
size · الخاصية size size size size size

الحالات

السلوك

متطلبات بصيغة EARS. يُختبر تنفيذ كل منصة مقابل هذه المعرّفات. يُعرض نص المتطلبات كما ورد في ملف المواصفة، بالإنجليزية.

المعرّف المتطلب
DSL-1 THE description list SHALL draw its facts in the order given, each fact a term and the value or values that answer it, as a block as wide as the layout gives it and as tall as its facts; it SHALL draw no fill, no edge, no corner and no elevation of its own, and SHALL bring no outer space of its own — no space above its first fact and none below its last — so that it is spaced by what holds it.
DSL-2 THE description list SHALL set every term in comp.description-list.term.typescale.regular while density is regular and in comp.description-list.term.typescale.compact while density is compact, in comp.description-list.term.color, and every value in comp.description-list.value.typescale.regular or comp.description-list.value.typescale.compact by density, in comp.description-list.value.color, with digits in figures of equal width so that the numbers of a column of values line up; it SHALL NOT add a colon or any other mark of its own after a term, and SHALL NOT change the weight, the case or the family of what the product wrote.
DSL-3 WHILE layout is inline THE description list SHALL draw one column of facts, and in each fact the term at the start and its values after it: every term in one term column, as wide as the widest term of the list set on one line, with no term wrapped or cut; every value in one value column that takes the rest of the list's width; and the two columns comp.description-list.term.gap.regular apart while density is regular and comp.description-list.term.gap.compact apart while density is compact. The first line of a term SHALL share its baseline with the first line of its first value.
DSL-4 WHILE layout is inline and the value column of DSL-3 would be narrower than comp.description-list.column.min-width THE description list SHALL draw every fact as layout stacked draws it (DSL-5) — all of its facts together, never some of them — and SHALL return to the two columns when the room is there again; it SHALL decide this from its own width, not from the window's, SHALL change at once and without a motion, and SHALL change nothing that is exposed (DSL-17).
DSL-5 WHILE layout is stacked THE description list SHALL draw in each fact the term on a line or lines of its own and its values below it after comp.description-list.stack.gap, both beginning at the start edge of the fact's column and no wider than it.
DSL-6 WHILE layout is stat THE description list SHALL draw in each fact the first value first, as a figure: in comp.description-list.stat.value.typescale.regular while density is regular and comp.description-list.stat.value.typescale.compact while density is compact, in comp.description-list.value.color, with digits in figures of equal width, on one line wherever the fact's column holds it; and the term below the figure after comp.description-list.stack.gap, in the term's own style and color (DSL-2), both beginning at the start edge of the fact's column. It SHALL set the figure's letter-spacing by the script of its text, as every title is set (PRS-20): no negative letter-spacing WHERE its language is Chinese, Japanese or Korean, and none WHERE its script joins its letters or stacks marks on them. THE description list SHALL still expose the term before its value (DSL-17): the order it draws changes nothing that is read.
DSL-7 WHILE layout is stacked or stat THE description list SHALL lay its facts out in columns of equal width, comp.description-list.column.gap apart, filled row by row in reading order from the start edge, the facts of a row beginning at one top edge: as many columns as the least of columns, the number of its facts, and the number of columns at least comp.description-list.column.min-width wide that its own width holds, and never fewer than one; WHEN its width changes it SHALL lay its facts out again at once, without a motion. WHILE layout is inline and columns is greater than 1 THE description list SHALL draw one column and in debug builds report that an inline list has one. IF columns is less than 1 or not a whole number THE description list SHALL draw one column and in debug builds report the value.
DSL-8 THE description list SHALL wrap the text of a value inside its column, and of a term wherever DSL-5 or DSL-6 places it, breaking lines by the rules of the text's language, and SHALL never cut it or end it with an ellipsis; a run with no break opportunity that is wider than its column (an identifier, an address) SHALL be broken where it meets the column's edge rather than be cut or reach outside the list.
DSL-9 WHERE a fact has more than one value THE description list SHALL draw each value on a line or lines of its own below the one before it, comp.description-list.stack.gap apart, in the order given, where the layout places a value: in the value column while the term sits beside it, under the term while it is stacked. WHILE layout is stat only the first value SHALL be the figure of DSL-6; those after it SHALL be drawn below the term, after comp.description-list.stack.gap, in the value's own style (DSL-2).
DSL-10 WHERE a term or a value holds a component or any content of the product's that is not plain text — a tag, a link, inline code, a button, a short list — THE description list SHALL place it where the text would begin, on the first line, SHALL add nothing to it and style nothing inside it, and SHALL let pointer, touch and keyboard input reach it as it would outside the list, in the reading order of the facts.
DSL-11 WHERE a fact has a term and no value, or a value with no content, THE description list SHALL draw the term, keep the value's place and one line of its height so that the fact stays in step with the others, expose the fact with an empty value, and SHALL NOT put a dash, a word or any other mark of its own in it. IF a fact has no term THE description list SHALL draw its values where they would be and in debug builds report that a value has no term. IF the list has no facts THE description list SHALL draw nothing, take no space and expose nothing.
DSL-12 WHILE the list's separation is divider (DSL-13) THE description list SHALL draw one line of comp.description-list.divider.thickness in comp.description-list.divider.color above every fact that is not in its first row, as wide as that fact's column — the whole width of the list where it draws one column, a term and its value under one line — and SHALL leave comp.description-list.fact.gap.regular between the line and the content on each side of it while density is regular, and comp.description-list.fact.gap.compact while density is compact, the line taking no room of its own; it SHALL draw no line above the first row or below the last, and none between two columns or between a term and its value.
DSL-13 THE description list SHALL tell a fact from the fact below it as its separation names: WHILE separation is auto, as comp.description-list.separation names, which follows sys.behavior.separation unless a design system sets it apart; WHILE separation is divider or gap, as that value names, whatever the tokens say; divider draws the lines of DSL-12 and gap leaves the space of DSL-14. WHEN separation, or the token it follows, changes THE description list SHALL draw the other form at once, without animation; WHEN separation names a value the description list does not define THE description list SHALL treat it as auto and in debug builds report the unknown value. A platform that cannot draw a choice SHALL fall back to the first value, divider, and state that in its README.
DSL-14 WHILE the list's separation is gap (DSL-13) THE description list SHALL leave comp.description-list.fact.gap.regular of empty space while density is regular, and comp.description-list.fact.gap.compact while density is compact, between every fact and the fact below it, SHALL draw none of the lines of DSL-12, and SHALL leave no such space above the first row or below the last; the facts SHALL stay exposed as facts (DSL-17).
DSL-15 THE description list, its facts, its terms and its values SHALL NOT take pointer, touch or keyboard input of their own, SHALL NOT take focus or be a stop in the focus order, and SHALL NOT change anything they draw under a pointer, a press or focus: a fact has no hovered, focused, pressed, selected or disabled state, draws no state layer and no focus indicator, and the list emits no event.
DSL-16 WHEN the facts, a term or a value change THE description list SHALL draw the new content at once, without a motion, lay itself out again where a width changed with it (DSL-3, DSL-4, DSL-7), and SHALL NOT announce the change by itself.
DSL-17 THE description list SHALL be exposed to assistive technology as terms each followed by the value or values that answer it, every value associated with its term, in the order given: on a platform that has the semantics of a description list, as that structure; on a platform that has none, each fact as one element whose text is the term followed by its values, set apart so that they are read as separate phrases ("Category, Actions"), with whatever inside the fact takes input still reached as an element of its own. The layout, the number of columns, the density, the separation and the order DSL-6 draws SHALL change nothing that is exposed; THE description list SHALL give a term no heading role and itself no name.
DSL-18 THE description list 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 description list is shown THE description list SHALL draw itself for the new direction at once, without a motion of its own, keeping what it shows.
DSL-19 WHERE the layout direction is right-to-left THE description list SHALL place the term column at the right and the value column at its left, begin every term and every value at the right edge of its column, fill its columns of facts from the right, and apply every gap by logical start and end. It draws no glyph of its own, so nothing in it is mirrored but its order.
DSL-20 THE description list SHALL lay out the text of each term and of each value as text of its own direction, isolated from the text beside it: it takes the base direction of its first strong character, or the layout direction where it has none, so that a left-to-right name, an identifier, a number with its sign, unit or currency, a version, an address and a date keep their own order in a right-to-left layout and reorder nothing beside them; THE description list SHALL place that text and align its lines by the layout direction, not by the text's own, and SHALL NOT reverse the digits of a number.
DSL-21 WHILE the text size is enlarged THE description list SHALL grow every text style with it, keep its gaps and its lines, take comp.description-list.column.min-width as grown by the same factor, and lay itself out again by DSL-3, DSL-4 and DSL-7, so that an inline list draws its terms above their values and a list in columns draws fewer of them where the larger text no longer fits; it SHALL cut no content, SHALL set no fixed height on a fact, SHALL lose no content when the reader raises line height, paragraph spacing, letter spacing or word spacing, and SHALL need no sideways scrolling at a width of 320 points with text at 200 %.
DSL-22 WHERE the platform draws with a person's own forced colors (the web's forced-colors mode, and a platform's equivalent where it has one) THE description list SHALL draw the lines of DSL-12 in the platform's text color and its terms and values in that color, a term still told from its value by its text style and its place; it draws no fill, so nothing else changes.
DSL-23 WHEN density names a value that the active design system does not have, or layout names a value this spec does not have, THE description list SHALL render with the default value (the default density's tokens, layout inline), and in debug builds report the unknown value.
DSL-24 WHEN its inline size changes THE description list SHALL choose between terms beside and above their values again from the new size.

مطابقة الأسماء بين المنصات

التكافؤ لا يعني واجهات برمجية متطابقة. تعبّر كل منصة عن العقد نفسه بأسلوبها.

المواصفة Web SwiftUI Jetpack Compose Flutter React Native
المكوّن tanrei-description-list TanreiDescriptionList TanreiDescriptionList TanreiDescriptionList DescriptionList
layout · الخاصية layout layout layout layout layout
columns · الخاصية columns columns columns columns columns
density · الخاصية density density density density density
separation · الخاصية separation separation separation separation separation
ملاحظات It is the form the table takes. <tanrei-description-list> is a custom element with **no shadow root**, wrapped around the product's native <dl>, which stays in the light DOM — <tanrei-description-list layout="stacked" columns="3"><dl><div><dt>Category</dt><dd>Actions</dd></div>…</dl></tanrei-description-list>. The dl, dt and dd are never given a role, so the description-list semantics are the browser's own, for a screen reader, a crawler and a page without script alike (DSL-17). Everything drawn comes from one stylesheet, @tanrei/web/description-list.css, whose selectors start at tanrei-description-list and are wrapped in :where(); it styles the page before and without script (an element that is not yet defined is still an element), and the element adopts the same sheet into the root it is connected to, so it also works inside another component's shadow root. Props are attributes of the wrapper: layout, columns, density, separation. The wrapper is display: block; container-type: inline-size with no margin; the dl has its browser margins removed and every dd its inset. inline (DSL-3): the dl is a grid of max-content minmax(0, 1fr) and each group a subgrid row spanning both tracks, align-items: first baseline. DSL-4 needs the widest term's width, which CSS cannot compare with the container's: the element watches its own box and its terms with a ResizeObserver and sets data-stacked while the value column would be under the least width; without script the term track is fit-content(50%), so a list that is too narrow wraps its terms instead of stacking — nothing is cut. stacked and stat columns (DSL-7) are pure CSS: grid-template-columns: repeat(auto-fit, minmax(min(100%, max(<least width>, (100% - (n - 1) * <gap>) / n)), 1fr)), n coming from attribute selectors for columns 2 to 6 and from a custom property the element sets for larger numbers; auto-fit already draws no more columns than facts. The least width is the token multiplied by the reader's text scale (the root font size over 16), so that it grows with enlarged text (DSL-21). stat (DSL-6): each group is a column-direction flex box with order on the dd:first-of-type, so the dt stays before its dd in the document while the figure is drawn first. Lines (DSL-12) are border-block-start on each group with the same negative margin and overflow: clip on the dl, so the first row's lines are not drawn and no script counts rows. font-variant-numeric: tabular-nums and overflow-wrap: anywhere on dd (DSL-2, DSL-8); unicode-bidi: plaintext on dt and dd (DSL-20); under :lang(ja, zh, ko) a stat figure's letter-spacing is 0 and line-break: strict applies. Under forced-colors: active the lines are CanvasText (DSL-22). A dl without groups — bare dt and dd children, as some Markdown extensions emit — is drawn in one column, inline or stacked, with the line above each dt that follows a dd; columns and stat need the groups, and debug builds say so. Tanrei does not transform content: nothing wraps a bare dl by itself. Inside .tanrei-prose the element is an island by its tag name (PRS-16): prose spaces it and styles nothing inside it, while a bare dl beside it stays prose's (PRS-13). Proposed spelling, for the platform's agent to settle. TanreiDescriptionList(layout: .stacked, columns: 3, density:, separation:) { TanreiFact("Category", value: "Actions"); TanreiFact("Status") { TanreiTag("Stable", status: .success, size: .small) } }. A custom Layout measures the terms once (DSL-3), compares what is left with the least width (DSL-4) and places the facts in equal columns (DSL-7); it is proposed its own width, so the decision is the container's. The least width is a @ScaledMetric. Not a Form, a LabeledContent or a List: each brings a look, insets or a row behaviour of its own. Accessibility: SwiftUI has no description-list container, so DSL-17's fallback applies — each fact is accessibilityElement(children: .combine) with the term's text before the values', a control inside a value stays an element of its own, and the stat layout sorts the term first with accessibilitySortPriority. Proposed spelling, for the platform's agent to settle. TanreiDescriptionList(layout = Stacked, columns = 3) { fact("Category", "Actions"); fact("Status") { value { TanreiTag("Stable", status = Success, size = Small) } } }. A custom Layout (or SubcomposeLayout) measures the terms' intrinsic widths, decides DSL-4 and DSL-7 from its own constraints, and aligns the first baselines; the least width is converted with the font scale. No ListItem: it is a pressable row with a look of its own. Semantics: each fact is semantics(mergeDescendants = true) with a contentDescription of the term and its values joined by commas, the term first in every layout; a clickable inside a value is not merged. Proposed spelling, for the platform's agent to settle. TanreiDescriptionList(layout: TanreiDescriptionListLayout.stacked, columns: 3, facts: [TanreiFact(term: "Category", value: "Actions")]). A LayoutBuilder gives the list its own width; the term column is measured with a TextPainter over the terms (or a custom RenderBox with intrinsic widths where a term holds a widget), and the least width is multiplied by the TextScaler. Not a Table, a ListTile or a DataTable. Semantics: one MergeSemantics per fact with a label of the term and its values joined by commas and sortKeys that put the term first in the stat layout; a control inside a value keeps its own node. Proposed spelling, for the platform's agent to settle. <DescriptionList layout="stacked" columns={3}><DescriptionList.Fact term="Category">Actions</DescriptionList.Fact></DescriptionList>. The list's own width comes from onLayout, and the widest term from a first measuring pass, so the first frame of an inline list is drawn after measuring; columns are flexBasis percentages computed from that width, and the least width is multiplied by the font scale. Each fact is one accessible view with accessibilityRole="text" and an accessibilityLabel of the term and its values joined by commas, the term first in every layout; a pressable inside a value stays its own element. Follows the app's direction where an ancestor's is not known.

الرموز

الرمز يشير إلى القيمة المحلولة (فاتح)
--tanrei-comp-description-list-column-gap sys.space.space400 32px
--tanrei-comp-description-list-column-min-width — 144px
--tanrei-comp-description-list-divider-color sys.color.outline-variant #000000 · 8%
--tanrei-comp-description-list-divider-thickness sys.border.hairline 1px
--tanrei-comp-description-list-fact-gap-compact — 6px
--tanrei-comp-description-list-fact-gap-regular — 12px
--tanrei-comp-description-list-separation sys.behavior.separation 0
--tanrei-comp-description-list-stack-gap sys.space.space50 4px
--tanrei-comp-description-list-term-color sys.color.on-surface-variant #4b4b4b
--tanrei-comp-description-list-term-gap-compact sys.space.space100 8px
--tanrei-comp-description-list-term-gap-regular sys.space.space200 16px
--tanrei-comp-description-list-value-color sys.color.on-surface #1b1b1b
--tanrei-comp-description-list-stat-value-typescale-compact sys.typescale.heading-3 500 20px/1.4
--tanrei-comp-description-list-stat-value-typescale-regular sys.typescale.heading-1 500 32px/1.25
--tanrei-comp-description-list-term-typescale-compact sys.typescale.label-small 500 12px/1.3333
--tanrei-comp-description-list-term-typescale-regular sys.typescale.label 500 14px/1.4286
--tanrei-comp-description-list-value-typescale-compact sys.typescale.body-small 400 13px/1.5385
--tanrei-comp-description-list-value-typescale-regular sys.typescale.body 400 14px/1.5714

نماذج الاختبار

عروض مرجعية. تلتقط كل المنصات لقطة لكل نموذج بالمعرّف نفسه حتى يمكن مقارنة النتائج.

مولَّد من specs/description-list.spec.json, tokens/comp/description-list.tokens.json, design/tokens/

الإرشادات

هل هي قائمة وصف

  • استخدمها لمعلومات شيء واحد. أما عدة أشياء تشترك في الأسماء نفسها فهي جدول، تسمّي ترويساتُه الأعمدة.
  • النص الذي يشرح كلمات، ويُقرأ بالترتيب بين الفقرات، نص متصل (prose): اتركه عنصر <dl> مجرَّدًا في محتواك. يضبطه النص المتصل نصًّا جاريًا يبرز فيه المصطلح. وهذا المكوّن هو القائمة نفسها في هيئة لها تخطيط، تبرز فيها القيمة.
  • ما يختار الشخص منه أو يضغطه هو القائمة (list).

كيف تلائم مكانها

تقرر القائمة كل شيء من عرضها هي، لا من عرض النافذة أبدًا. فالقائمة نفسها صحيحة في صفحة، وفي بطاقة، وفي لوحة جانبية، وفي مربع حوار.

  • التخطيط inline يُرصّ من تلقاء نفسه. حين لا يبقى للقيم بجانب أوسع مصطلح إلا أقل من 144، تُرسم كل معلومة ومصطلحها فوق قيمتها، كلها معًا، وتعود القائمة إلى عمودين حين يتسع المكان. وتعيد القائمة القرار كلما تغيّر عرضها، حتى إن رُتّبت أول مرة بلا عرض، في لوحة أو علامة تبويب لم تُعرض بعد. لا تبدّل التخطيط بنفسك من أجل نافذة صغيرة.
  • الأعمدة تقلّ من تلقاء نفسها. الخاصية columns هي أكثر ما يرسمه التخطيطان stacked و stat من أعمدة. عرض كل عمود 144 على الأقل، فأربعة أرقام تكون أربعة أعمدة في صفحة واسعة، واثنين واثنين في صفحة ضيقة، وعمودًا واحدًا على هاتف. ولا ترسم القائمة أبدًا أعمدة أكثر مما فيها من معلومات.
  • القائمة بالتخطيط inline عمود واحد. ولا أثر للخاصية columns فيها.
  • لا يُقصّ شيء. القيم تلتفّ. والمعرّف أو العنوان الذي لا ينكسر يُكسر عند حافة العمود. ولا تُمرَّر القائمة جانبيًّا أبدًا.

الكثافة

density المصطلح والقيمة بين المعلومات يُستخدم لـ
regular (الافتراضي) 14 على ارتفاع سطر 20، و 14 على 22 12؛ ومع خط، 12 على كل جانب منه معلومات يقرؤها الشخص: صفحة، أو بطاقة، أو مربع حوار.
compact 12 على 16، و 13 على 20 6؛ ومع خط، 6 على كل جانب منه معلومات يمسحها الشخص بنظره: لوحة جانبية، أو لوحة فحص (inspector).

الرقم الكبير في التخطيط stat مقاسه 32 على 40 مع regular و 20 على 28 مع compact.

التفريق بين المعلومات

separation ما يرسمه
auto (الافتراضي) ما اختاره نظام التصميم: خط رفيع في النظام الافتراضي.
divider خط رفيع واحد بين المعلومة والتي تحتها.
gap فراغ بلا خط.

لا خط فوق الصف الأول، ولا تحت الأخير، ولا بين عمودين، ولا بين مصطلح وقيمته. والقائمة المؤطَّرة قائمة في بطاقة من الطراز outlined.

افعل

  • اجعل المصطلح أقصر ما يمكن: «يُشحن إلى»، لا «العنوان الذي يُشحن إليه هذا الطلب».
  • اكتب الغياب بالكلمات حيث يكون معلومة: «لا يوجد»، «غير معيَّن»، «غير محدود».
  • قل التغيّر بالكلمات: «بزيادة 12% عن الأسبوع الماضي» قيمةً ثانية تحت الرقم.
  • استخدم وسمًا صغيرًا (size="small") للحالة في قيمة، حتى لا يزيد ارتفاع سطرها.

لا تفعل

  • لا تضع نقطتين بعد المصطلح. علامات الترقيم من شأن اللغة، والمصطلح يتميّز أصلًا من قيمته بالنمط والموضع.
  • لا تضع شرطة في قيمة فارغة. اتركها فارغة، أو اكتب الغياب.
  • لا تلوّن رقمًا لتقول إنه جيد أو سيئ. الاتجاه كلمة، أو وسم تقوله تسميته.
  • لا تستخدم القائمة لوضع أشياء لا علاقة بينها جنبًا إلى جنب. ذاك تخطيط.

إمكانية الوصول

الدور
none
التسمية
WAI-ARIA has no role for a description list as a whole, only for its parts (term, definition), so the component names none: on the web the product's own dl, dt and dd stay in the document and carry the structure; elsewhere each fact is one element read "term, value" (DSL-17). The list has no accessible name of its own: the heading above it says what the facts are about, as it does for a person who sees them.
الحد الأدنى للهدف
تستوفي مساحة اللمس الحد الأدنى لحجم الهدف حتى لو كان الحجم المرئي أصغر. minimum 32px · pointer 44px · spacing 8px · touch 48px

لوحة المفاتيح

المفاتيح الإجراء

ملاحظات

  • Not interactive: the list, its facts, its terms and its values take no input and no focus (DSL-15), so there is no target to size. minimumTarget holds trivially. What is pressable inside a value — a link, a button, a copy button — meets the minimum target by its own spec and keeps its place in the focus order.
  • A description list is for the facts of one thing (WCAG 1.3.1): each term names what its value is. Several things that share the same names are a table, whose headers name columns; text that is read in order, with a term now and then, is prose, which sets a bare description list as running text (PRS-13). Do not use this component to place unrelated things side by side.
  • Every value has a term, and a term is a name, not a heading: it takes no heading role (DSL-17), so a screen reader's list of headings is not filled with "Size", "Owner" and "Date". A block of facts that needs a title gets a heading above it, which the product writes.
  • What is drawn first is not always what is read first: the stat layout draws the figure above its label and still exposes "orders this week, 1,284" (DSL-6). Both orders are a meaningful sequence (WCAG 1.3.2); the exposed one is the same in every layout, so that a person hears a list the same way wherever it is drawn.
  • An empty value is exposed as empty (DSL-11). Where the absence itself is information ("None", "Not set", "Unlimited"), write it as the value, in words: a dash is read as punctuation or not at all.
  • Meaning never rests on color. A figure is the surface's text color whatever it says; a change (up, down, better, worse) is a tag or text in the value whose words say the direction ("up 12 % since last week"), with a glyph if the product wants one, never a color alone (WCAG 1.4.1).
  • Reflow (WCAG 1.4.10) and enlarged text (1.4.4, 1.4.12): the list decides its layout from its own width, so the same rules that stack it in a narrow panel stack it at 200 % text and in a 320 wide window (DSL-4, DSL-7, DSL-21). Nothing is cut and nothing scrolls sideways; an unbreakable value is broken at the edge (DSL-8).
  • Contrast in the default system: a value is on-surface and a term on-surface-variant, each held to 4.5:1 on every surface and container step by the token invariants. The line between facts is decorative: facts are exposed without it.
  • A list does not announce a change of its facts (DSL-16). Where a change must be heard (a figure that updates while the person watches), the product puts the list, or the one fact, in a live region and decides how often it speaks.

مولَّد من specs/description-list.spec.json, tokens/sys/measure.tokens.json

ما يتكفل به المكوّن

  • القائمة الأصلية تبقى قائمة وصف: المصطلحات وتعريفاتها هي ما يعرّفه المتصفح نفسه، في كل تخطيط، بأي من الكثافتين، بخطوط أو من دونها.
  • الترتيب الذي يُقرأ لا يتغير أبدًا. التخطيط stat يرسم الرقم فوق تسميته، ويبقى يقدّم المصطلح أولًا للتقنيات المساعدة.
  • لا شيء في القائمة يأخذ التركيز أو يستقبل إدخالًا. والرابط أو الزر داخل قيمة يحتفظ بهدفه وبموضعه في ترتيب التركيز.
  • عند تكبير النص إلى 200% وفي نافذة عرضها 320، ترصّ قواعد العرض نفسها القائمة وتقلّل أعمدتها. والعرض الأدنى يكبر مع النص.
  • في التخطيط من اليمين إلى اليسار يكون عمود المصطلحات في اليمين، وتمتلئ الأعمدة من اليمين. ويحتفظ كل مصطلح وكل قيمة باتجاهه، فلا يُعكس رقم إصدار ولا عنوان ولا مبلغ أبدًا.
  • في الألوان المفروضة (forced colors) تكون الخطوط والنص بلون النص. وليس للقائمة تعبئة تفقدها.
  • يُبلَّغ في بنيات التنقيح عن قيمة بلا مصطلح، وعن columns على قائمة بالتخطيط inline، وعن عدد أعمدة ليس عددًا صحيحًا، وعن التخطيط stat أو الأعمدة على قائمة بلا مجموعات، وعن تخطيط أو كثافة أو طريقة فصل غير معروفة.

ما عليك فعله

  • ضع فوق القائمة عنوان قسم يقول عمَّ تتحدث المعلومات. ليس للقائمة اسم خاص بها، والمصطلح ليس عنوان قسم أبدًا.
  • أعطِ كل قيمة مصطلحًا.
  • حيث يتغير رقم والشخص يراقب ويجب أن يُسمع التغيّر، ضع القائمة أو المعلومة الواحدة في منطقة حيّة (live region) من عندك. القائمة لا تُعلِن التغيّرات.