Skip to content

Commit 1f9b89c

Browse files
committed
docs(demo): rename destructive to outlined button style
1 parent 2208b83 commit 1f9b89c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

demo/build.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Separate SectionCard titled "User":
167167
- Logged out: Status = "Anonymous", External ID = "–"
168168
- Logged in: Status = "Logged In" (success/green), External ID = actual value
169169
2. LOGIN USER button ("SWITCH USER" when logged in) -> dialog with empty "External User Id" field
170-
3. LOGOUT USER button (only when logged in, destructive/outlined style)
170+
3. LOGOUT USER button (only when logged in, outlined style)
171171

172172
### Prompt 2.2 - Push Section
173173

@@ -188,7 +188,7 @@ Separate SectionCard titled "User":
188188
ios_sound: "vine_boom.wav", android_channel_id: "b3b015d9-c050-4042-8548-dcc34aa44aa4"
189189
Sound file: copy `vine_boom.wav` from https://github.com/OneSignal/sdk-shared/tree/main/assets and add to each platform's native sound/resource directory (e.g. iOS app bundle, Android `res/raw/`)
190190
4. CUSTOM - dialog for custom title and body
191-
5. CLEAR ALL - destructive/outlined style, calls OneSignal.Notifications.clearAll()
191+
5. CLEAR ALL - outlined style, calls OneSignal.Notifications.clearAll()
192192

193193
### Prompt 2.4 - In-App Messaging Section
194194

@@ -286,7 +286,7 @@ Only shown on iOS. Requires an iOS Widget Extension target with a Live Activity
286286
1. START LIVE ACTIVITY — calls `OneSignal.LiveActivities.startDefault(activityId, attributes, content)` with initial order status. Disabled when Activity ID is empty.
287287
2. UPDATE → {NEXT STATUS} — cycles through order statuses via REST API (`event: "update"`). Label dynamically shows the next status (e.g. "UPDATE → ON THE WAY"). Disabled when Activity ID is empty, while updating, or when no API key is configured.
288288
3. STOP UPDATING LIVE ACTIVITY — calls `OneSignal.LiveActivities.exitDefault(activityId)` to unsubscribe from remote updates. Outlined style. Disabled when Activity ID is empty.
289-
4. END LIVE ACTIVITY — ends the activity via REST API (`event: "end"`) with `dismissal_date`. Destructive style. Disabled when Activity ID is empty or when no API key is configured.
289+
4. END LIVE ACTIVITY — ends the activity via REST API (`event: "end"`) with `dismissal_date`. Outlined style. Disabled when Activity ID is empty or when no API key is configured.
290290

291291
Order status cycle (content state fields: `status`, `message`, `estimatedTime`):
292292

@@ -436,7 +436,7 @@ Single state container at app root. Holds all UI state with public getters. Expo
436436

437437
- **SectionCard**: card with title, optional info icon, content slot, onInfoTap callback
438438
- **ToggleRow**: label, optional description, toggle control
439-
- **ActionButton**: PrimaryButton (filled) and DestructiveButton (outlined), full-width, per styles.md
439+
- **ActionButton**: PrimaryButton (filled) and OutlinedButton (for secondary/destructive actions), full-width, per styles.md
440440
- **ListWidgets**: PairItem (key-value + optional delete), SingleItem (value + delete), EmptyState, CollapsibleList (5 items then expandable), PairList
441441
- **LoadingOverlay**: full-screen spinner overlay per styles.md
442442
- **Dialogs**: all full-width with consistent padding

demo/styles.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
101101
- Corner radius: 8
102102
- Leading icon (when present): size 18, 8 gap before label
103103

104-
### Destructive / Outlined Button
104+
### Outlined Button
105+
106+
Used for secondary and destructive actions. "Destructive" and "outlined" refer to the same visual style — there is only one non-primary button variant.
105107

106108
- Full width
107109
- Background: transparent

0 commit comments

Comments
 (0)