Skip to content

docs: rename stringifyDataAttribute to toDataAttributeValue in headless docs - #36683

Open
Victor Genaev (mainframev) wants to merge 1 commit into
microsoft:masterfrom
mainframev:docs/headless-skill-data-attr-rename
Open

docs: rename stringifyDataAttribute to toDataAttributeValue in headless docs#36683
Victor Genaev (mainframev) wants to merge 1 commit into
microsoft:masterfrom
mainframev:docs/headless-skill-data-attr-rename

Conversation

@mainframev

@mainframev Victor Genaev (mainframev) commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Previous Behavior

The stringifyDataAttribute utility in @fluentui/react-headless-components-preview was renamed to toDataAttributeValue in #36596, but two docs were left pointing at the old name:

  • .agents/skills/headless-component/SKILL.md — the skill agents use to author headless primitives
  • docs/react-v9/contributing/rfcs/react-components/convergence/headless-components.md — the headless components RFC

New Behavior

All references use toDataAttributeValue.

The RFC comment now matches the implementation: the utility returns '' when the attribute should be present and undefined when it should be omitted. The old wording would have led consumers to write [data-disabled="true"] selectors that never match, since the attribute is emitted with an empty value.

Docs-only, no change file needed.

Related Issue(s)

…ss docs

The utility was renamed in react-headless-components-preview (microsoft#36596) but
the headless-component skill and the headless components RFC still
referenced the old name.

Also corrects the RFC's description of the utility's return value: it
returns '' when the attribute is present and undefined when omitted, not
the strings "true"/"false".
@github-actions github-actions Bot added the Type: RFC Request for Feedback label Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@mainframev Victor Genaev (mainframev) removed the Type: RFC Request for Feedback label Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Pull request demo site: URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants