|
165 | 165 | --webchat-borderRadiusMedium: var(--borderRadiusMedium, 4px); |
166 | 166 | --webchat-borderRadiusLarge: var(--borderRadiusLarge, 6px); |
167 | 167 | --webchat-borderRadiusXLarge: var(--borderRadiusXLarge, 8px); |
| 168 | + --webchat-borderRadius2XLarge: var(--borderRadius2XLarge, 12px); |
168 | 169 |
|
169 | 170 | /* https://github.com/microsoft/fluentui/blob/master/packages/tokens/src/global/strokeWidths.ts */ |
170 | 171 | --webchat-strokeWidthThin: var(--strokeWidthThin, 1px); |
|
283 | 284 |
|
284 | 285 | /* Transcript focus indicator color when in focus-visible state */ |
285 | 286 | :global(.webchat-fluent).theme |
286 | | - :global( |
287 | | - .webchat__basic-transcript |
288 | | - .webchat__basic-transcript__terminator:focus-visible |
289 | | - + .webchat__basic-transcript__focus-indicator |
290 | | - ) { |
| 287 | + :global(.transcript-focus-area .transcript-focus-area__terminator + .transcript-focus-area__transcript-indicator) { |
291 | 288 | border-color: var(--webchat-colorStrokeFocus2); |
292 | 289 | } |
293 | 290 |
|
294 | | -/* Transcript Activity indicator without focus-visible state */ |
295 | | -:global(.webchat-fluent).theme |
296 | | - :global(.webchat__basic-transcript:not(:focus-visible) .webchat__basic-transcript__activity-indicator--focus) { |
| 291 | +/* Transcript Content indicator without focus-visible state */ |
| 292 | +:global(.webchat-fluent).theme :global(.transcript-focus-area:not(:focus-visible) .transcript-focus-area__indicator) { |
297 | 293 | /* Hide activity focus when no focus-visible state */ |
298 | 294 | display: none; |
299 | 295 | } |
300 | 296 |
|
301 | | -/* Transcript Focus indicator when activity focused */ |
| 297 | +/* Transcript Focus indicator when content focused */ |
302 | 298 | :global(.webchat-fluent).theme |
303 | | - :global(.webchat__basic-transcript:focus-visible:has(.webchat__basic-transcript__activity-indicator--focus)) { |
304 | | - :global(.webchat__basic-transcript__focus-indicator) { |
| 299 | + :global(.transcript-focus-area:focus-visible:has(.transcript-focus-area__content--focused)) { |
| 300 | + :global(.transcript-focus-area__transcript-indicator) { |
305 | 301 | /* Hide transcript focus when an activity is focused */ |
306 | 302 | display: none; |
307 | 303 | } |
308 | 304 | } |
309 | 305 |
|
310 | | -/* Transcript focused activity */ |
311 | | -:global(.webchat-fluent).theme |
312 | | - :global( |
313 | | - .webchat__basic-transcript:focus-visible |
314 | | - .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) |
315 | | - ) { |
316 | | - :global(.webchat__basic-transcript__activity-indicator--focus) { |
317 | | - /* Hide transcript activity focus when the activity is focused */ |
| 306 | +/* Transcript focused content */ |
| 307 | +:global(.webchat-fluent).theme :global(.transcript-focus-area:focus-visible .transcript-focus-area__content--focused) { |
| 308 | + :global(.transcript-focus-area__indicator) { |
| 309 | + /* Hide transcript activity focus when the content is focused */ |
| 310 | + display: none; |
| 311 | + } |
| 312 | + |
| 313 | + /* Transcript ctivity focused directly */ |
| 314 | + > :global(.transcript-focus-area__content-root > .webchat__focus-trap .webchat__bubble) { |
| 315 | + display: grid; |
| 316 | + grid-template-areas: 'focused-content'; |
| 317 | + position: static; |
| 318 | + |
| 319 | + :global(.webchat__bubble__content) { |
| 320 | + grid-area: focused-content; |
| 321 | + } |
| 322 | + |
| 323 | + &::after { |
| 324 | + border-radius: var(--webchat__bubble--border-radius); |
| 325 | + content: ''; |
| 326 | + grid-area: focused-content; |
| 327 | + height: 100%; |
| 328 | + outline: var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2); |
| 329 | + pointer-events: none; |
| 330 | + width: 100%; |
| 331 | + } |
| 332 | + } |
| 333 | + |
| 334 | + &:has(:global(.collapsible-grouping)) > :global(.transcript-focus-area__indicator) { |
| 335 | + border-radius: var(--webchat-borderRadiusXLarge); |
| 336 | + border: none; |
| 337 | + box-sizing: content-box; |
| 338 | + display: block; |
| 339 | + height: calc(100% - var(--webchat-spacingVerticalXS)); |
| 340 | + margin: 0; |
| 341 | + margin: var(--webchat-spacingVerticalXXS) calc(var(--webchat-spacingHorizontalSNudge) * -1); |
| 342 | + outline: var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2); |
| 343 | + padding: var(--webchat-spacingVerticalNone) var(--webchat-spacingHorizontalSNudge); |
| 344 | + width: 100%; |
| 345 | + } |
| 346 | + |
| 347 | + :global(.activity-decorator .webchat__bubble .webchat__bubble__nub-pad) { |
318 | 348 | display: none; |
319 | 349 | } |
320 | 350 |
|
321 | | - :global(.webchat__bubble)::after, |
322 | 351 | :global(.pre-chat-message-activity)::after { |
323 | 352 | border-radius: var(--webchat__bubble--border-radius); |
324 | 353 | content: ''; |
|
596 | 625 | } |
597 | 626 | } |
598 | 627 |
|
599 | | -/* Monochrome image masker */ |
600 | | -:global(.webchat-fluent).theme :global(.webchat__monochrome-image-masker) { |
601 | | - background-color: currentColor; |
602 | | - height: 1em; |
603 | | - width: 1em; |
604 | | -} |
605 | | - |
606 | 628 | /* Feedback button */ |
607 | 629 | :global(.webchat-fluent).theme :global(.webchat__thumb-button) { |
608 | 630 | :global(.webchat__thumb-button__image) { |
|
0 commit comments