reflex-components-code 0.9.5a1__tar.gz → 0.9.6__tar.gz

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.
@@ -1,4 +1,11 @@
1
- ## v0.9.5a1 (2026-09-10)
1
+ ## v0.9.6 (2026-09-21)
2
+
3
+ ### Bug Fixes
4
+
5
+ - Give default code-copy buttons an accessible name and prevent them from submitting an enclosing form. ([#7078](https://github.com/reflex-dev/reflex/issues/7078))
6
+
7
+
8
+ ## v0.9.5 (2026-09-11)
2
9
 
3
10
  ### Miscellaneous
4
11
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: reflex-components-code
3
- Version: 0.9.5a1
3
+ Version: 0.9.6
4
4
  Summary: Reflex code display components.
5
5
  Author-email: Khaleel Al-Adhami <khaleel@reflex.dev>
6
6
  Maintainer-email: Khaleel Al-Adhami <khaleel@reflex.dev>
@@ -485,6 +485,8 @@ class CodeBlock(Component, MarkdownComponentMap):
485
485
  if copy_button is not None
486
486
  else Button.create(
487
487
  Icon.create(tag="copy"),
488
+ aria_label="Copy code",
489
+ type="button",
488
490
  on_click=set_clipboard(code),
489
491
  style=Style({"position": "absolute", "top": "0.5em", "right": "0"}),
490
492
  )
@@ -785,6 +785,8 @@ class ShikiHighLevelCodeBlock(ShikiCodeBlock):
785
785
  if copy_button is not None
786
786
  else Button.create(
787
787
  Icon.create(tag="copy", size=16, color=color("gray", 11)),
788
+ aria_label="Copy code",
789
+ type="button",
788
790
  on_click=[
789
791
  set_clipboard(cls._strip_transformer_triggers(code)),
790
792
  copy_script(),