@sesamy/sesamy-components 2.25.0 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -369,7 +369,7 @@ The paywall also emits the `addToCart` interaction through sesamy-js when the us
369
369
 
370
370
  #### Slots
371
371
 
372
- The `sesamy-paywall` component provides two main slots for customization:
372
+ The `sesamy-paywall` component provides three slots for customization:
373
373
 
374
374
  ##### below-headline
375
375
 
@@ -399,9 +399,22 @@ The `sesamy-paywall` component provides two main slots for customization:
399
399
  </sesamy-paywall>
400
400
  ```
401
401
 
402
+ ##### login-button-text
403
+
404
+ - **Purpose:** Replaces the text of the "already subscribing" login button the paywall renders above the headline.
405
+ - **Behavior:** The paywall embeds a nested `sesamy-login` component and forwards this slot into that component's own `button-text` slot. When you leave it empty, the default translated text (`Already subscribing? Login`) is used.
406
+ - **Availability:** Only the `ARTICLE` template renders this login button. The `BOXES` template hides it, and the `LOGIN` template doesn't embed a `sesamy-login` at all, so the slot has no effect there.
407
+ - **Styling:** Inside the paywall this button is rendered borderless and underlined (4px offset), at the base font size (16px by default) rather than the 14px a standalone `sesamy-login` uses, and it fades to 80% opacity on hover. Set `--sesamy-login-button-text-size` on the paywall to override the size; the other `--sesamy-login-button-*` variables apply as usual.
408
+ - **Example:**
409
+ ```html
410
+ <sesamy-paywall settings-url="https://api.example.com/paywall/settings">
411
+ <span slot="login-button-text">Already a subscriber? Sign in</span>
412
+ </sesamy-paywall>
413
+ ```
414
+
402
415
  **Note:**
403
416
 
404
- - The `below-headline` slot adds to the paywall, while the `features` slot replaces the default features section entirely.
417
+ - The `below-headline` slot adds to the paywall, while the `features` and `login-button-text` slots replace the default content entirely.
405
418
 
406
419
  ### sesamy-visibility
407
420